clients frontend demo first pass

This commit is contained in:
miloschwartz 2025-02-21 16:58:30 -05:00
parent 6e1bfdac58
commit 098723b88d
No known key found for this signature in database
10 changed files with 940 additions and 24 deletions

View file

@ -104,6 +104,12 @@ export async function createClient(
return next(createHttpError(HttpCode.NOT_FOUND, "Site not found"));
}
if (site.type !== "newt") {
return next(
createHttpError(HttpCode.BAD_REQUEST, "Site is not a newt site")
);
}
await db.transaction(async (trx) => {
const adminRole = await trx
.select()