Created
April 20, 2022 21:06
-
-
Save zalun/300b251f1d8c863a63e8f86e8bb2b826 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// src/index.js | |
module.exports = { | |
register(/*{ strapi }*/) {}, | |
bootstrap({ strapi }) { | |
strapi.db.lifecycles.subscribe((event) => { | |
if (event.action === "afterUpdate") { | |
console.log(event); | |
} | |
}); | |
}, | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment