To elaborate on Boegie19’s point; here’s the information in the docs to extend core services:
Here’s an example:
async find(params) {
const ctx = strapi.requestContext.get();
const { user } = ctx.state;
params.filters = {
...params.filters,
user: user.id
};
const { results, pagination } = await super.find(params);
return { results, pagination };
},