mirror of
https://github.com/fosrl/pangolin.git
synced 2025-08-04 10:05:53 +02:00
Use niceId
This commit is contained in:
parent
ff47ba0b77
commit
c47d7fb1ff
15 changed files with 62 additions and 55 deletions
|
@ -82,7 +82,6 @@ export async function createSite(req: Request, res: Response, next: NextFunction
|
|||
orgId,
|
||||
name,
|
||||
niceId,
|
||||
subdomain,
|
||||
pubKey,
|
||||
subnet,
|
||||
}).returning();
|
||||
|
@ -129,7 +128,7 @@ export async function createSite(req: Request, res: Response, next: NextFunction
|
|||
status: HttpCode.CREATED,
|
||||
});
|
||||
} catch (error) {
|
||||
logger.error(error);
|
||||
throw error;
|
||||
return next(createHttpError(HttpCode.INTERNAL_SERVER_ERROR, "An error occurred..."));
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue