From d9b9076bb2cd47226b177985820688efd3d05d51 Mon Sep 17 00:00:00 2001 From: Benjamin Toby Date: Fri, 11 Oct 2024 10:15:29 +0100 Subject: [PATCH] update types --- users/user-auth.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/users/user-auth.js b/users/user-auth.js index cb5d6c7..d89bb7b 100644 --- a/users/user-auth.js +++ b/users/user-auth.js @@ -126,7 +126,7 @@ function userAuth({ success: true, payload: userObject, }; - } catch (error) { + } catch (/** @type {any} */ error) { /** * Return User Object * @@ -135,7 +135,7 @@ function userAuth({ return { success: false, payload: null, - msg: error, + msg: error.message, }; } }