diff --git a/packages/core/database/src/model-hook.ts b/packages/core/database/src/model-hook.ts index d9176641e..c2b109dc6 100644 --- a/packages/core/database/src/model-hook.ts +++ b/packages/core/database/src/model-hook.ts @@ -27,7 +27,7 @@ export class ModelHook { findModelName(hookArgs) { for (const arg of hookArgs) { - if (arg instanceof Model) { + if (arg?._previousDataValues) { return (arg).constructor.name; }