Removing uncessary reference to current.

This commit is contained in:
James Parker 2022-08-08 08:56:08 -05:00
parent 2302515c11
commit e78fa2b088

View File

@ -12,7 +12,7 @@ module.exports = ({ strapi }) => ({
// Check to see if we have an existing reference and if it matches. // Check to see if we have an existing reference and if it matches.
let current = null; let current = null;
if (params.where && params.where.id) { 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) this.update(ctx, current)
}, },