Query models inside a lifecycle hook

So, that wordked for me :

const res = await strapi.service("plugin::users-permissions.user").fetch({ id: data.author})

I’m not sure why I have to query the service here and not the model, but that works !

1 Like