From e52bc851128a6fc02f14c183712400af1492044f Mon Sep 17 00:00:00 2001 From: Basem Khirat Date: Sun, 16 Aug 2020 13:28:35 +0200 Subject: [PATCH] Update UserController.js --- controllers/v1/UserController.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/controllers/v1/UserController.js b/controllers/v1/UserController.js index d368ad6..3202ddc 100644 --- a/controllers/v1/UserController.js +++ b/controllers/v1/UserController.js @@ -275,7 +275,7 @@ export default class extends Controller { await user.remove(); return res.ok(id, req.lang("user.events.deleted")); - } catch (e) { + } catch (error) { return res.serverError(error); } }