From 885bc7f301fc9246ab99a5f3e235b0a337ade216 Mon Sep 17 00:00:00 2001 From: David Arranz Date: Thu, 12 Sep 2024 19:41:51 +0200 Subject: [PATCH] . --- server/src/infrastructure/sequelize/initStructure.ts | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/server/src/infrastructure/sequelize/initStructure.ts b/server/src/infrastructure/sequelize/initStructure.ts index e18c824..4ac68f7 100644 --- a/server/src/infrastructure/sequelize/initStructure.ts +++ b/server/src/infrastructure/sequelize/initStructure.ts @@ -13,8 +13,7 @@ const createCatalogTableIfNotExists = async (sequelize: Sequelize) => { WHERE table_schema = DATABASE() AND table_name = 'catalog';`; - const [result] = await sequelize.query(checkTableQuery); - + const [result]: any = await sequelize.query(checkTableQuery); const tableExists = result[0]["COUNT(*)"] > 0; if (!tableExists) { @@ -63,7 +62,7 @@ const createCatalogTranslationsTableIfNotExists = async (sequelize: Sequelize) = AND table_name = 'catalog_translations'; `; - const [result] = await sequelize.query(checkTableQuery); + const [result]: any = await sequelize.query(checkTableQuery); const tableExists = result[0]["COUNT(*)"] > 0; if (!tableExists) { @@ -111,7 +110,7 @@ const createVCatalogViewIfNotExists = async (sequelize: Sequelize) => { AND table_name = 'v_catalog'; `; - const [result] = await sequelize.query(checkViewQuery); + const [result]: any = await sequelize.query(checkViewQuery); const viewExists = result[0]["COUNT(*)"] > 0; if (!viewExists) {