fix migration

This commit is contained in:
Fran Jurmanović
2023-04-13 14:35:36 +02:00
parent e1f9de58cd
commit 062bb74221
21 changed files with 80 additions and 87 deletions

View File

@@ -20,7 +20,7 @@ Creates api table if it does not exist.
Returns:
error: Returns if there is an error with table creation
*/
func CreateTableApi(db pg.DB) error {
func CreateTableApi(db *pg.Tx) error {
models := []interface{}{
(*model.ApiModel)(nil),