Skip to content

Commit

Permalink
fix: Cannot find module 'sequelize/types/lib/hooks' wrong path fix
Browse files Browse the repository at this point in the history
'types/lib' folder was removed in sequelize verstion >= 6
  • Loading branch information
mystylelee2 committed Feb 10, 2022
1 parent 1375709 commit 3742e0d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/hooks/shared/hook-meta.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { HookOptions } from './hook-options';
import { SequelizeHooks } from 'sequelize/types/lib/hooks';
import { SequelizeHooks } from 'sequelize/types/hooks';

export interface HookMeta {
hookType: keyof SequelizeHooks;
Expand Down
2 changes: 1 addition & 1 deletion src/hooks/shared/hooks-service.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import 'reflect-metadata';
import { HookMeta } from './hook-meta';
import { HookOptions } from './hook-options';
import { SequelizeHooks } from 'sequelize/types/lib/hooks';
import { SequelizeHooks } from 'sequelize/types/hooks';
import { ModelCtor } from '../../model/model/model';

const HOOKS_KEY = 'sequelize:hooks';
Expand Down

0 comments on commit 3742e0d

Please sign in to comment.