From 0e2cd532910aeac25afa8149b239797403f59fd1 Mon Sep 17 00:00:00 2001 From: André Oliveira Date: Fri, 13 Oct 2023 19:18:44 +0100 Subject: Fix request not defined error --- app/Controllers/Http/ServiceController.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/Controllers/Http/ServiceController.ts') diff --git a/app/Controllers/Http/ServiceController.ts b/app/Controllers/Http/ServiceController.ts index 37a90fa..3ebc246 100644 --- a/app/Controllers/Http/ServiceController.ts +++ b/app/Controllers/Http/ServiceController.ts @@ -120,7 +120,7 @@ export default class ServiceController { return response.send(servicesArray); } - public async delete({ params, auth, response }: HttpContextContract) { + public async delete({ request, params, auth, response }: HttpContextContract) { // @ts-expect-error Property 'user' does not exist on type 'HttpContextContract'. const user = auth.user ?? request.user; -- cgit v1.2.3-54-g00ecf