mirror of
https://github.com/fosrl/pangolin.git
synced 2026-02-16 01:46:38 +00:00
Move to string ordId
This commit is contained in:
@@ -12,7 +12,7 @@ import { eq } from 'drizzle-orm';
|
||||
const addUserActionSchema = z.object({
|
||||
userId: z.string(),
|
||||
actionId: z.string(),
|
||||
orgId: z.string().transform(Number).pipe(z.number().int().positive()),
|
||||
orgId: z.string(),
|
||||
});
|
||||
|
||||
export async function addUserAction(req: Request, res: Response, next: NextFunction): Promise<any> {
|
||||
|
||||
@@ -11,7 +11,7 @@ import logger from '@server/logger';
|
||||
|
||||
const addUserParamsSchema = z.object({
|
||||
userId: z.string().uuid(),
|
||||
orgId: z.string().transform(Number).pipe(z.number().int().positive())
|
||||
orgId: z.string()
|
||||
});
|
||||
|
||||
const addUserSchema = z.object({
|
||||
|
||||
@@ -15,7 +15,7 @@ const removeUserActionParamsSchema = z.object({
|
||||
|
||||
const removeUserActionSchema = z.object({
|
||||
actionId: z.string(),
|
||||
orgId: z.string().transform(Number).pipe(z.number().int().positive())
|
||||
orgId: z.string()
|
||||
});
|
||||
|
||||
export async function removeUserAction(req: Request, res: Response, next: NextFunction): Promise<any> {
|
||||
|
||||
@@ -11,7 +11,7 @@ import logger from '@server/logger';
|
||||
|
||||
const removeUserSchema = z.object({
|
||||
userId: z.string().uuid(),
|
||||
orgId: z.string().transform(Number).pipe(z.number().int().positive())
|
||||
orgId: z.string()
|
||||
});
|
||||
|
||||
export async function removeUserOrg(req: Request, res: Response, next: NextFunction): Promise<any> {
|
||||
|
||||
@@ -12,7 +12,7 @@ import logger from '@server/logger';
|
||||
const addUserRoleSchema = z.object({
|
||||
userId: z.string(),
|
||||
roleId: z.number().int().positive(),
|
||||
orgId: z.string().transform(Number).pipe(z.number().int().positive())
|
||||
orgId: z.string()
|
||||
});
|
||||
|
||||
export async function addUserRole(req: Request, res: Response, next: NextFunction): Promise<any> {
|
||||
|
||||
Reference in New Issue
Block a user