Remove log in lifecycles artistes
This commit is contained in:
@@ -19,10 +19,8 @@ const jwennAwtisEpiId = async id => {
|
|||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
beforeUpdate: async event => {
|
beforeUpdate: async event => {
|
||||||
console.log('event', event)
|
|
||||||
let {data} = event.params
|
let {data} = event.params
|
||||||
|
|
||||||
|
|
||||||
if(!data.publishedAt) {
|
if(!data.publishedAt) {
|
||||||
if (!data.slug || data.slug !== slugify(data.alias, {lower: true, remove: /[*#+~.()'"!:@]/g})) {
|
if (!data.slug || data.slug !== slugify(data.alias, {lower: true, remove: /[*#+~.()'"!:@]/g})) {
|
||||||
data.slug = slugify(data.alias, {lower: true, remove: /[*#+~.()'"!:@]/g})
|
data.slug = slugify(data.alias, {lower: true, remove: /[*#+~.()'"!:@]/g})
|
||||||
|
|||||||
Reference in New Issue
Block a user