rename organizationId -> organizationSlug
This commit is contained in:
@@ -8,10 +8,10 @@ export type IServiceClientWithProject = Prisma.ClientGetPayload<{
|
||||
};
|
||||
}>;
|
||||
|
||||
export async function getClientsByOrganizationId(organizationId: string) {
|
||||
export async function getClientsByOrganizationSlug(organizationSlug: string) {
|
||||
return db.client.findMany({
|
||||
where: {
|
||||
organizationSlug: organizationId,
|
||||
organizationSlug,
|
||||
},
|
||||
include: {
|
||||
project: true,
|
||||
|
||||
@@ -85,7 +85,7 @@ export const zInviteUser = z.object({
|
||||
});
|
||||
|
||||
export const zShareOverview = z.object({
|
||||
organizationId: z.string(),
|
||||
organizationSlug: z.string(),
|
||||
projectId: z.string(),
|
||||
password: z.string().nullable(),
|
||||
public: z.boolean(),
|
||||
|
||||
Reference in New Issue
Block a user