Skip to content

Commit

Permalink
Don't reference something that doesn't exist
Browse files Browse the repository at this point in the history
  • Loading branch information
elffjs committed Dec 3, 2024
1 parent 42751af commit e83474b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/services/contracts_events_consumer.go
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ func (c *ContractsEventsConsumer) handleSyntheticTransfer(ctx context.Context, e
qm.Load(models.SyntheticDeviceRels.VehicleToken),
).One(ctx, c.db.DBS().Writer)
if err != nil {
return fmt.Errorf("couldn't find synthetic device %d to burn: %w", sd.TokenID, err)
return fmt.Errorf("couldn't find synthetic device %d to burn: %w", args.TokenId, err)
}

// The most important thing is to delete the database rows to free things up.
Expand Down

0 comments on commit e83474b

Please sign in to comment.