Skip to content

Commit

Permalink
Add new retry
Browse files Browse the repository at this point in the history
  • Loading branch information
idprm committed Oct 12, 2024
1 parent 43cb767 commit 6d8b1ce
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions internal/handler/sms_handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -459,6 +459,12 @@ func (h *SMSHandler) SubAlerteEquipe(team *entity.Team) {
IpAddress: h.req.GetIpAddress(),
}

if h.IsSub() {
h.subscriptionService.Update(subscription)
} else {
h.subscriptionService.Save(subscription)
}

sub, err := h.subscriptionService.Get(service.GetId(), h.req.GetMsisdn())
if err != nil {
log.Println(err.Error())
Expand Down

0 comments on commit 6d8b1ce

Please sign in to comment.