Skip to content

Commit

Permalink
fix typescript error
Browse files Browse the repository at this point in the history
  • Loading branch information
dtrrk committed Feb 20, 2024
1 parent cadafd2 commit 976a19c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/sequelize/sequelize/sequelize-service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 976a19c

Please sign in to comment.