Based off this question, I have written the following lifecycle function in my in my api/foo/model/foo.js
file.
'use strict';
module.exports = {
async afterUpdate(modifications, filter, resultData) {
strapi.log.error('here');
console.log('there');
}
}
However, when I update a Foo in the Strapi admin console, nothing is logged. What am I missing?