Closed barisusakli closed 1 year ago
The missing awaits were actually on purpose since nothing depended on them, so done()
would be called a little sooner, but it doesn't really matter either way :smile:
As for the try..catch, that's a good fix. I wonder whether we should handle it for the user instead? e.g. slugify username instead.
2023-08-24T19:08:18.191Z [4567/2759461] - [31merror[39m: Error: Invalid Username at User.isDataValid (/home/ec2-user/nodebb/nodebb/src/user/create.js:145:10) at Object.wrapperCallback [as isDataValid] (/home/ec2-user/nodebb/nodebb/src/promisify.js:46:11) at User.create (/home/ec2-user/nodebb/nodebb/src/user/create.js:22:14) at Object.wrapperCallback [as create] (/home/ec2-user/nodebb/nodebb/src/promisify.js:46:11) at Object.OAuth.login (/home/ec2-user/nodebb/nodebb/node_modules/nodebb-plugin-sso-oauth2-multiple/library.js:173:20) at processTicksAndRejections (node:internal/process/task_queues:96:5) at async OAuth2Strategy._verify (/home/ec2-user/nodebb/nodebb/node_modules/nodebb-plugin-sso-oauth2-multiple/library.js:86:16) 2023-08-24T19:08:18.191Z [4567/2759461] - [32minfo[39m: [app] Shutdown (SIGTERM/SIGINT) Initialised. 2023-08-24T19:08:18.194Z [4567/2759461] - [32minfo[39m: [app] Web server closed to connections. 2023-08-24T19:08:18.197Z [4567/2759461] - [32minfo[39m: [app] Live analytics saved. 2023-08-24T19:08:18.200Z [4567/2759461] - [32minfo[39m: [app] Database connection closed. 2023-08-24T19:08:18.200Z [4567/2759461] - [32minfo[39m: [app] Shutdown complete. [cluster] Child Process (2759461) has exited (code: 1, signal: null)