chore: Refactor user activation to command

This commit is contained in:
Tom Moor
2022-08-18 11:24:27 +02:00
parent f620a9d34c
commit f32f07cdcc
5 changed files with 105 additions and 17 deletions

View File

@@ -438,13 +438,6 @@ class User extends ParanoidModel {
});
};
activate = () => {
return this.update({
suspendedById: null,
suspendedAt: null,
});
};
// hooks
@BeforeDestroy