Skip to content

Commit

Permalink
fix: truncate updated at (#4149)
Browse files Browse the repository at this point in the history
  • Loading branch information
aeneasr authored Oct 9, 2024
1 parent bafd32a commit 2f8aaee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion persistence/sql/identity/persister_identity.go
Original file line number Diff line number Diff line change
Expand Up @@ -1101,7 +1101,7 @@ func (p *IdentityPersister) UpdateIdentity(ctx context.Context, i *identity.Iden
}

i.NID = p.NetworkID(ctx)
i.UpdatedAt = time.Now().UTC()
i.UpdatedAt = time.Now().UTC().Truncate(time.Microsecond)
if err := sqlcon.HandleError(p.Transaction(ctx, func(ctx context.Context, tx *pop.Connection) error {
// This returns "ErrNoRows" if the identity does not exist
if err := update.Generic(WithTransaction(ctx, tx), tx, p.r.Tracer(ctx).Tracer(), i); err != nil {
Expand Down

0 comments on commit 2f8aaee

Please sign in to comment.