mirror of
https://github.com/documenso/documenso.git
synced 2025-11-15 01:01:49 +10:00
18 lines
338 B
TypeScript
18 lines
338 B
TypeScript
import { prisma } from '@documenso/prisma';
|
|
|
|
export interface GetUserWebhooksByIdOptions {
|
|
id: number;
|
|
}
|
|
|
|
export const getUserWebhooksById = async ({ id }: GetUserWebhooksByIdOptions) => {
|
|
return await prisma.user.findFirstOrThrow({
|
|
where: {
|
|
id,
|
|
},
|
|
select: {
|
|
email: true,
|
|
Webhooks: true,
|
|
},
|
|
});
|
|
};
|