Skip to content

Commit

Permalink
Fix err returning
Browse files Browse the repository at this point in the history
  • Loading branch information
k-karuna committed Sep 10, 2024
1 parent eeb712e commit 5ded1af
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion internal/storage/postgres/core.go
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,10 @@ func setTokenMetadataLastUpdateID(ctx context.Context, conn *database.Bun) error
models.SetLastUpdateID(0)
return nil
}
if err != nil {
return err
}

models.SetLastUpdateID(tokenMetadata.UpdateID)
return err
return nil
}

0 comments on commit 5ded1af

Please sign in to comment.