I don’t know if this can help, but I’m currently creating my Controllers and Services this way:
My code:
const modelUid = "api::company.company";
module.exports = createCoreService(modelUid, ({ strapi }) => ({
async doSomething(){ ... }
} ) );
OP code:
module.exports = createCoreService(‘api::blog.blog’), ({ strapi }) => ({
async doSomething() { ... }
} )
see the diference in createCoreService? My function still open until the final lines