mirror of
https://github.com/fosrl/pangolin.git
synced 2026-02-25 06:16:40 +00:00
Merge dev into fix/log-analytics-adjustments
This commit is contained in:
@@ -10,9 +10,9 @@ import { eq } from "drizzle-orm";
|
||||
import { fromError } from "zod-validation-error";
|
||||
|
||||
const addUserSiteSchema = z.strictObject({
|
||||
userId: z.string(),
|
||||
siteId: z.string().transform(Number).pipe(z.int().positive())
|
||||
});
|
||||
userId: z.string(),
|
||||
siteId: z.string().transform(Number).pipe(z.int().positive())
|
||||
});
|
||||
|
||||
export async function addUserSite(
|
||||
req: Request,
|
||||
@@ -61,7 +61,6 @@ export async function addUserSite(
|
||||
status: HttpCode.CREATED
|
||||
});
|
||||
});
|
||||
|
||||
} catch (error) {
|
||||
logger.error(error);
|
||||
return next(
|
||||
|
||||
Reference in New Issue
Block a user