fix: allow /v1/endpoint access without user settings for new user creation

This commit is contained in:
Jemma Poffinbarger
2024-07-30 16:40:31 -05:00
parent 9cb644e22f
commit 28ef808178

View File

@@ -97,7 +97,9 @@ async function auth(request: express.Request, response: express.Response, next:
const userSettings = await getUserSettings(request.pid);
if (!userSettings) {
if (!userSettings && request.path === '/v1/endpoint') {
return next();
} else if (!userSettings) {
return badAuth(response, 18, 'BAD_PARAM');
}