fix access token session do not extend and make domains lower case

This commit is contained in:
Milo Schwartz
2024-12-26 15:13:49 -05:00
parent d2e4cd07ca
commit 2ed4b948b8
6 changed files with 42 additions and 32 deletions

View File

@@ -51,7 +51,9 @@ export async function createResource(
);
}
const { name, subdomain } = parsedBody.data;
let { name, subdomain } = parsedBody.data;
subdomain = subdomain.toLowerCase(); // always to lower case
// Validate request params
const parsedParams = createResourceParamsSchema.safeParse(req.params);