diff options
| author | Adam Soltys <[email protected]> | 2024-01-18 17:33:11 +0000 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2024-01-18 17:33:11 +0000 |
| commit | 5eca77c3571ab0b929bdb36aed84ff7781e20e07 (patch) | |
| tree | bf8a16a168b466026acd64953dd3a9dc95db1858 /lib/utils.js | |
| parent | 3563e3ce82200abbdc06b3ffb832e2ba6cf7f659 (diff) | |
| download | coinos-server-5eca77c3571ab0b929bdb36aed84ff7781e20e07.tar.gz coinos-server-5eca77c3571ab0b929bdb36aed84ff7781e20e07.zip | |
err logs
Diffstat (limited to 'lib/utils.js')
| -rw-r--r-- | lib/utils.js | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/utils.js b/lib/utils.js index d286d093..e6aba14a 100644 --- a/lib/utils.js +++ b/lib/utils.js @@ -66,7 +66,5 @@ export let fields = [ ]; export let getUser = async (username) => { - let user = await migrate(username); - if (!user || username === "undefined") fail(`user ${username} not found`); - return user; + return migrate(username); }; |
