chore: Refactor user activation to command
This commit is contained in:
@@ -438,13 +438,6 @@ class User extends ParanoidModel {
|
||||
});
|
||||
};
|
||||
|
||||
activate = () => {
|
||||
return this.update({
|
||||
suspendedById: null,
|
||||
suspendedAt: null,
|
||||
});
|
||||
};
|
||||
|
||||
// hooks
|
||||
|
||||
@BeforeDestroy
|
||||
|
||||
Reference in New Issue
Block a user