From 1bfece99a732acfadd2ea3b54b243517d37abc64 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20FAMIBELLE-PRONZOLA?= Date: Sat, 14 May 2022 23:42:01 +0400 Subject: [PATCH] Fix slug update in lifecycle artiste --- src/api/artiste/content-types/artiste/lifecycles.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/api/artiste/content-types/artiste/lifecycles.js b/src/api/artiste/content-types/artiste/lifecycles.js index 2aaf308..8d45dd7 100644 --- a/src/api/artiste/content-types/artiste/lifecycles.js +++ b/src/api/artiste/content-types/artiste/lifecycles.js @@ -46,7 +46,10 @@ module.exports = { if (slug !== slugUpdated) { await strapi.db.query('api::parole.parole').update({ - where: {id, slug: slugUpdated} + where: {id}, + data: { + slug: slugUpdated + } }) } }))