mirror of
https://github.com/fosrl/pangolin.git
synced 2026-02-10 20:02:26 +00:00
Use niceId
This commit is contained in:
@@ -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..."));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user