mirror of
https://github.com/ComfortablyCoding/strapi-plugin-slugify.git
synced 2025-12-21 00:01:49 -05:00
Removing uncessary reference to current.
This commit is contained in:
parent
2302515c11
commit
e78fa2b088
@ -12,7 +12,7 @@ module.exports = ({ strapi }) => ({
|
||||
// Check to see if we have an existing reference and if it matches.
|
||||
let current = null;
|
||||
if (params.where && params.where.id) {
|
||||
let current = await strapi.entityService.findOne(entityModel.uid, params.where.id)
|
||||
await strapi.entityService.findOne(entityModel.uid, params.where.id)
|
||||
}
|
||||
this.update(ctx, current)
|
||||
},
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user