Skip to content

Commit

Permalink
Added call of making comments for models.
Browse files Browse the repository at this point in the history
  • Loading branch information
vvuwei committed Jun 28, 2023
1 parent 2ec3822 commit 11160a9
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions cmd/mempool/models/database.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,11 @@ func OpenDatabaseConnection(ctx context.Context, cfg config.Database, kinds ...s
return nil, err
}
}

if err := database.MakeComments(ctx, db, data...); err != nil {
return nil, err
}

db.DB().AddQueryHook(dbLogger{})

return db, nil
Expand Down

0 comments on commit 11160a9

Please sign in to comment.