From 11160a9e201e0e61859c7e356937f78680b0a6ab Mon Sep 17 00:00:00 2001 From: Lavysh Alexander Date: Wed, 28 Jun 2023 21:35:28 +0300 Subject: [PATCH] Added call of making comments for models. --- cmd/mempool/models/database.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/cmd/mempool/models/database.go b/cmd/mempool/models/database.go index d258e7d..3618529 100644 --- a/cmd/mempool/models/database.go +++ b/cmd/mempool/models/database.go @@ -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