fix: if account is deleted token updater shoul skip updateing rather then break
This commit is contained in:
parent
266e5f0487
commit
42a11924c1
@ -46,7 +46,7 @@ func (m *Methods) UpdateTokens(ctx context.Context) ([]model.Token, error) {
|
||||
user, err := m.repo.AmoRepo.GetCurrentAccount(ctx, oldToken.AccountID)
|
||||
if err != nil {
|
||||
m.logger.Error("error getting account by id in UpdateTokens", zap.Error(err))
|
||||
return nil, err
|
||||
continue
|
||||
}
|
||||
req := models.UpdateWebHookReq{
|
||||
GrantType: "refresh_token",
|
||||
|
Loading…
Reference in New Issue
Block a user