Use niceId

This commit is contained in:
Owen Schwartz 2024-10-14 22:26:32 -04:00
parent ff47ba0b77
commit c47d7fb1ff
No known key found for this signature in database
GPG key ID: 8271FDFFD9E0CCBD
15 changed files with 62 additions and 55 deletions

View file

@ -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..."));
}
}