//get logged in member id
let response= await strapi.db.query(‘api::doctor.doctor’).findOne({
where: {
uid: ctx.state.user.id
},
});
await strapi.plugins[“users-permissions”].services.user.sendConfirmationEmail(user);