my code is exactly the same:
export default factories.createCoreController('api::tarif.tarif', ({ strapi }) => ({
async markForDeletion (ctx: Koa.Context, next) {
console.log('ctx.query:', ctx.query) // undefined
//therefore fails:
const update = await strapi.entityService.update('api::tarif.tarif', ctx.query.id, {
data: {
markForDeletion: true,
},
});