mirror of
https://github.com/fosrl/pangolin.git
synced 2025-07-28 14:44:55 +02:00
clients frontend demo first pass
This commit is contained in:
parent
6e1bfdac58
commit
098723b88d
10 changed files with 940 additions and 24 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue