mirror of
https://github.com/plankanban/planka.git
synced 2025-12-18 01:11:13 +03:00
ref: Remove board types, refactoring
This commit is contained in:
@@ -26,7 +26,10 @@ module.exports = {
|
||||
throw Errors.USER_NOT_FOUND;
|
||||
}
|
||||
|
||||
user = await sails.helpers.users.deleteOne(user, this.req);
|
||||
user = await sails.helpers.users.deleteOne.with({
|
||||
record: user,
|
||||
request: this.req,
|
||||
});
|
||||
|
||||
if (!user) {
|
||||
throw Errors.USER_NOT_FOUND;
|
||||
|
||||
Reference in New Issue
Block a user