Join Discord
Powered by
btw you dont have to to try catch inside the promi...
# support-questions-legacy
m
mrhelll
04/26/2021, 5:12 AM
btw you dont have to to try catch inside the promise, if there is an exception inside promise, the promise is rejected automatically. The then should just look like
Copy code
.then(async u => { await createSession(res, u.id) res.json(u)
Previous
Next