|
@@ -52,6 +52,7 @@ export const post = async (req: ExpressRequest, res: ExpressResponse):
|
|
logger.error("WEB: failed to auth user %s: %s", userResult.id, userInServerResult.error);
|
|
logger.error("WEB: failed to auth user %s: %s", userResult.id, userInServerResult.error);
|
|
return res.json({ ok: false, error: "Couldn't determine if user joined the server, please try again later" });
|
|
return res.json({ ok: false, error: "Couldn't determine if user joined the server, please try again later" });
|
|
}
|
|
}
|
|
|
|
+ logger.verbose("Logged in as %s#%s (%s); user in server: (%s)", userResult.username, userResult.discriminator, userResult.id, userInServerResult.result.exists);
|
|
if (!userInServerResult.result.exists) {
|
|
if (!userInServerResult.result.exists) {
|
|
return res.json({ ok: false, error: "You haven't joined any servers NoctBot manages! Please join first and try again!" });
|
|
return res.json({ ok: false, error: "You haven't joined any servers NoctBot manages! Please join first and try again!" });
|
|
}
|
|
}
|