mirror of
https://github.com/strapi/strapi.git
synced 2025-12-27 15:13:21 +00:00
Remove warning where clause
This commit is contained in:
parent
9d8cd3f620
commit
02a2e087cc
@ -123,6 +123,6 @@ module.exports = async cb => {
|
||||
|
||||
await pluginStore.set({key: 'advanced', value});
|
||||
}
|
||||
|
||||
|
||||
strapi.plugins['users-permissions'].services.userspermissions.initialize(cb);
|
||||
};
|
||||
|
||||
@ -138,10 +138,13 @@ module.exports = {
|
||||
},
|
||||
|
||||
removePermission: async function (params) {
|
||||
const value = params[this.primaryKey] ? {
|
||||
[this.primaryKey]: params[this.primaryKey] || params.id
|
||||
} : params;
|
||||
|
||||
return this
|
||||
.forge({
|
||||
[this.primaryKey]: params[this.primaryKey] || params.id
|
||||
})
|
||||
.forge()
|
||||
.where(value)
|
||||
.destroy();
|
||||
}
|
||||
};
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user