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) {