diff options
author | André Oliveira <oliveira.andrerodrigues95@gmail.com> | 2023-10-13 19:18:44 +0100 |
---|---|---|
committer | André Oliveira <oliveira.andrerodrigues95@gmail.com> | 2023-10-13 19:18:50 +0100 |
commit | 0e2cd532910aeac25afa8149b239797403f59fd1 (patch) | |
tree | f88fe199bc001bda26deded12b9b428c82b49d06 /app/Controllers/Http/ServiceController.ts | |
parent | 2.0.1 [skip ci] (diff) | |
download | ferdium-server-0e2cd532910aeac25afa8149b239797403f59fd1.tar.gz ferdium-server-0e2cd532910aeac25afa8149b239797403f59fd1.tar.zst ferdium-server-0e2cd532910aeac25afa8149b239797403f59fd1.zip |
Fix request not defined error
Diffstat (limited to 'app/Controllers/Http/ServiceController.ts')
-rw-r--r-- | app/Controllers/Http/ServiceController.ts | 2 |
1 files changed, 1 insertions, 1 deletions
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 { | |||
120 | return response.send(servicesArray); | 120 | return response.send(servicesArray); |
121 | } | 121 | } |
122 | 122 | ||
123 | public async delete({ params, auth, response }: HttpContextContract) { | 123 | public async delete({ request, params, auth, response }: HttpContextContract) { |
124 | // @ts-expect-error Property 'user' does not exist on type 'HttpContextContract'. | 124 | // @ts-expect-error Property 'user' does not exist on type 'HttpContextContract'. |
125 | const user = auth.user ?? request.user; | 125 | const user = auth.user ?? request.user; |
126 | 126 | ||