diff --git a/src/api/artiste/content-types/artiste/lifecycles.js b/src/api/artiste/content-types/artiste/lifecycles.js index ffb51a2..38087d2 100644 --- a/src/api/artiste/content-types/artiste/lifecycles.js +++ b/src/api/artiste/content-types/artiste/lifecycles.js @@ -19,10 +19,8 @@ const jwennAwtisEpiId = async id => { module.exports = { beforeUpdate: async event => { - console.log('event', event) let {data} = event.params - if(!data.publishedAt) { if (!data.slug || data.slug !== slugify(data.alias, {lower: true, remove: /[*#+~.()'"!:@]/g})) { data.slug = slugify(data.alias, {lower: true, remove: /[*#+~.()'"!:@]/g})