diff options
Diffstat (limited to 'server/models/account/user.ts')
-rw-r--r-- | server/models/account/user.ts | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/server/models/account/user.ts b/server/models/account/user.ts index e37fd4d3b..8eb88062a 100644 --- a/server/models/account/user.ts +++ b/server/models/account/user.ts | |||
@@ -94,7 +94,8 @@ export class UserModel extends Model<UserModel> { | |||
94 | 94 | ||
95 | @HasOne(() => AccountModel, { | 95 | @HasOne(() => AccountModel, { |
96 | foreignKey: 'userId', | 96 | foreignKey: 'userId', |
97 | onDelete: 'cascade' | 97 | onDelete: 'cascade', |
98 | hooks: true | ||
98 | }) | 99 | }) |
99 | Account: AccountModel | 100 | Account: AccountModel |
100 | 101 | ||