From 976a19c6c0ca3098dac541cc27c70bc98826821b Mon Sep 17 00:00:00 2001 From: Gennady Vihrov Date: Tue, 20 Feb 2024 16:28:58 +0300 Subject: [PATCH] fix typescript error --- src/sequelize/sequelize/sequelize-service.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sequelize/sequelize/sequelize-service.ts b/src/sequelize/sequelize/sequelize-service.ts index 8f01f5f0..acfed78c 100644 --- a/src/sequelize/sequelize/sequelize-service.ts +++ b/src/sequelize/sequelize/sequelize-service.ts @@ -39,7 +39,7 @@ export function getModels(arg: (ModelCtor | string)[], modelMatch: ModelMatch): const hasSupportedExtension = (path) => ['.ts', '.js'].indexOf(extname(path)) !== -1; if (arg && typeof arg[0] === 'string') { - return arg.reduce((models: any[], dir) => { + return arg.reduce((models: any[], dir: string) => { if (!glob.hasMagic(dir) && !hasSupportedExtension(dir)) dir = join(dir as string, '/*'); const _models = glob .sync(dir as string)