diff --git a/server/services/slug-service.js b/server/services/slug-service.js index 5836883..fd973e4 100644 --- a/server/services/slug-service.js +++ b/server/services/slug-service.js @@ -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) },