aboutsummaryrefslogtreecommitdiffstats
path: root/lib/utils.js
diff options
context:
space:
mode:
Diffstat (limited to 'lib/utils.js')
-rw-r--r--lib/utils.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/utils.js b/lib/utils.js
index e6aba14a..7b468f3b 100644
--- a/lib/utils.js
+++ b/lib/utils.js
@@ -66,5 +66,7 @@ export let fields = [
];
export let getUser = async (username) => {
- return migrate(username);
+ let user = await migrate(username);
+ if (!user || username === "undefined") fail("user not found");
+ return user;
};