Fix metamigo-api build error

This commit is contained in:
Darren Clarke 2023-03-13 16:12:34 +00:00
parent 161f3fcee2
commit 68736c0c90

View file

@ -148,7 +148,7 @@ export const UnverifyBotRoute = Helpers.withDefaults({
description: "Unverify bot", description: "Unverify bot",
async handler(request: Hapi.Request, _h: Hapi.ResponseToolkit) { async handler(request: Hapi.Request, _h: Hapi.ResponseToolkit) {
const { id } = request.params; const { id } = request.params;
const { whatsappService } = request.services(); const { whatsappService } = request.services("app");
const bot = await whatsappService.findById(id); const bot = await whatsappService.findById(id);