Fix slug update in lifecycle artiste
This commit is contained in:
@@ -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
|
||||
}
|
||||
})
|
||||
}
|
||||
}))
|
||||
|
||||
Reference in New Issue
Block a user