From 2ad43db1ed01fe0b5b116ddda1a5177c9f62c130 Mon Sep 17 00:00:00 2001 From: MCMXC <16797721+mcmxcdev@users.noreply.github.com> Date: Sat, 10 Feb 2024 18:37:40 -0700 Subject: updates --- app/Controllers/Http/Dashboard/DeleteController.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'app/Controllers/Http/Dashboard/DeleteController.ts') diff --git a/app/Controllers/Http/Dashboard/DeleteController.ts b/app/Controllers/Http/Dashboard/DeleteController.ts index bd824b0..76e41ca 100644 --- a/app/Controllers/Http/Dashboard/DeleteController.ts +++ b/app/Controllers/Http/Dashboard/DeleteController.ts @@ -1,20 +1,20 @@ -import type { HttpContext } from '@adonisjs/core/http' +import type { HttpContext } from '@adonisjs/core/http'; export default class DeleteController { /** * Display the delete page */ public async show({ view }: HttpContext) { - return view.render('dashboard/delete') + return view.render('dashboard/delete'); } /** * Delete user and session */ public async delete({ auth, response }: HttpContext) { - auth.user?.delete() - auth.use('web').logout() + auth.user?.delete(); + auth.use('web').logout(); - return response.redirect('/user/login') + return response.redirect('/user/login'); } } -- cgit v1.2.3-70-g09d2