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 + } }) } }))