Hey all, I’m trying to extend the core functionality of a service according to these docs https://docs.strapi.io/developer-docs/latest/development/backend-customization/services.html#extending-core-services
I’ve created a simple log for the create action but I’m not getting anything in the console. Am I missing something? (Tried on 4.1.5, 4.1.7, 4.2.0 and 4.3 beta)
/**
* article service.
*/
import { factories } from "@strapi/strapi";
export default factories.createCoreService(
"api::article.article",
({ strapi }) => ({
async create(params) {
console.log(params);
},
})
);
System Information
- Strapi version: 4.2.0
- OS: Mac
- Database: PostgreSQL
- Node version: 16.5
- NPM Version:
- Yarn version: 1.22