From 0ecb26fcc0d1358efeafc1512dfb67ac6695382b Mon Sep 17 00:00:00 2001 From: Bennett Date: Tue, 10 Mar 2020 15:07:46 +0100 Subject: Fix lint --- app/Controllers/Http/UserController.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'app/Controllers/Http/UserController.js') diff --git a/app/Controllers/Http/UserController.js b/app/Controllers/Http/UserController.js index edfccf2..979e78a 100644 --- a/app/Controllers/Http/UserController.js +++ b/app/Controllers/Http/UserController.js @@ -155,17 +155,17 @@ class UserController { async updateMe({ request, response, - auth + auth, }) { let settings = auth.user.settings || {}; if (typeof settings === 'string') { settings = JSON.parse(settings); } - let newSettings = { + const newSettings = { ...settings, ...request.all(), - } + }; auth.user.settings = JSON.stringify(newSettings); await auth.user.save(); @@ -188,7 +188,7 @@ class UserController { }, status: [ 'data-updated', - ] + ], }); } -- cgit v1.2.3-70-g09d2