Fix slug update in lifecycle artiste

This commit is contained in:
Cédric FAMIBELLE-PRONZOLA
2022-05-14 23:42:01 +04:00
parent 0a310cf504
commit 1bfece99a7
@@ -46,7 +46,10 @@ module.exports = {
if (slug !== slugUpdated) { if (slug !== slugUpdated) {
await strapi.db.query('api::parole.parole').update({ await strapi.db.query('api::parole.parole').update({
where: {id, slug: slugUpdated} where: {id},
data: {
slug: slugUpdated
}
}) })
} }
})) }))