forked from andyburke/autonomous.contact
fix: more navigation and chat fixes
This commit is contained in:
parent
de77f0fbe9
commit
0bc303a762
2 changed files with 16 additions and 47 deletions
|
|
@ -161,7 +161,7 @@ export async function POST(req: Request, meta: Record<string, any>): Promise<Res
|
|||
await INVITE_CODES.create(root_invite_code);
|
||||
}
|
||||
|
||||
const secret_code = submitted_invite_code ?? root_invite_code_secret;
|
||||
const secret_code = root_invite_code_secret ?? submitted_invite_code; // if it's the first user, use the autogen code, ignore anything they submit
|
||||
if (typeof secret_code !== 'string' || secret_code.length < 3) {
|
||||
return Response.json({
|
||||
error: {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue