diff options
| author | Adam Soltys <[email protected]> | 2023-12-29 09:08:27 +0000 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2023-12-29 09:08:35 +0000 |
| commit | f584d7a56762d19ac6c1f5eda87cfb26816d5d57 (patch) | |
| tree | dca37600e33dd3319cbc5d7e70ab1c70bd14830d /lib/auth.js | |
| parent | cb38551cc4ec392911d18dda9b5a9fe97087ad61 (diff) | |
| download | coinos-server-f584d7a56762d19ac6c1f5eda87cfb26816d5d57.tar.gz coinos-server-f584d7a56762d19ac6c1f5eda87cfb26816d5d57.zip | |
migrate in more places
Diffstat (limited to 'lib/auth.js')
| -rw-r--r-- | lib/auth.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/auth.js b/lib/auth.js index b17a1f2d..cb9a4f0d 100644 --- a/lib/auth.js +++ b/lib/auth.js @@ -40,7 +40,7 @@ export const jwtStrategy = new jwt.Strategy( let { id } = payload; user = await g(`user:${id}`); if (typeof user === "string") user = await g(`user:${user}`); - if (!user) migrate(id); + if (!user) user = migrate(id); } next(null, user); |
