Skip to content

Instantly share code, notes, and snippets.

@zalun
Created April 20, 2022 21:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zalun/300b251f1d8c863a63e8f86e8bb2b826 to your computer and use it in GitHub Desktop.
Save zalun/300b251f1d8c863a63e8f86e8bb2b826 to your computer and use it in GitHub Desktop.
// 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