// Example implementation of clientSelect
const clientSelect = {
a: true,
b: true,
c: true
}
export const getClientById = async (
clientId: number,
select?: Prisma.ClientSelect
) => {
return await prisma.client.findFirst({
select: select || clientSelect,
where: {
id: clientId,
},
});
};
// Example implementation of clientSelect
const clientSelect = {
a: true,
b: true,
c: true
}
export const getClientById = async (
clientId: number,
select?: Prisma.ClientSelect
) => {
return await prisma.client.findFirst({
select: select || clientSelect,
where: {
id: clientId,
},
});
};