Skip to content

Commit

Permalink
Rollback func call order
Browse files Browse the repository at this point in the history
  • Loading branch information
k-karuna committed Sep 10, 2024
1 parent 31197c2 commit fc8d204
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/storage/postgres/core.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,11 +69,11 @@ func initDatabase(ctx context.Context, conn *database.Bun) error {
return err
}

if err := createIndices(ctx, conn); err != nil {
if err := setTokenMetadataLastUpdateID(ctx, conn); err != nil {
return err
}

return setTokenMetadataLastUpdateID(ctx, conn)
return createIndices(ctx, conn)
}

func createIndices(ctx context.Context, conn *database.Bun) error {
Expand Down

0 comments on commit fc8d204

Please sign in to comment.