Your ROOT_URL in app.ini is https://git.cloudchain.link/ but you are visiting https://dash.bss.nz/open-source-mirrors/ass/commit/c8ee9a29850f07593e8a52c88765f24955e8d015 You should set ROOT_URL correctly, otherwise the web may not work correctly.

fix: log user create error locally

pull/249/head
Sylvie 1 year ago
parent 7791af03c1
commit c8ee9a2985
No known key found for this signature in database
GPG Key ID: 75AB0FE5B983A3AF

@ -129,7 +129,10 @@ router.post('/user', rateLimiterMiddleware('api', UserConfig.config?.rateLimit?.
} catch (err: any) { issue = `Error: ${err.message}`; }
if (issue) return res.status(400).json({ success: false, messsage: issue });
if (issue) {
log.error('Failed to create user', issue);
return res.status(400).json({ success: false, messsage: issue });
}
log.debug(`User created`, user!.username);
res.json(({ success: true, message: `User ${user!.username} created` }));

Loading…
Cancel
Save