Skip to content

Commit

Permalink
Handle message forwarded to the router
Browse files Browse the repository at this point in the history
  • Loading branch information
Robi9 committed Apr 8, 2024
1 parent 49e8ce9 commit 9322612
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions core/tasks/handler/worker.go
Original file line number Diff line number Diff line change
Expand Up @@ -716,6 +716,11 @@ func handleMsgEvent(ctx context.Context, rt *runtime.Runtime, event *MsgEvent) e
return errors.Wrap(err, "unable to send message to router")
}

err = models.UpdateMessage(ctx, rt.DB, event.MsgID, models.MsgStatusHandled, models.VisibilityVisible, models.MsgTypeInbox, topupID)
if err != nil {
return errors.Wrapf(err, "error marking message as handled")
}

return nil

} else {
Expand Down

0 comments on commit 9322612

Please sign in to comment.