mirror of
https://github.com/documenso/documenso.git
synced 2025-11-13 16:23:06 +10:00
16 lines
301 B
TypeScript
16 lines
301 B
TypeScript
import { prisma } from '@documenso/prisma';
|
|
|
|
export type DeleteWebhookByIdOptions = {
|
|
id: string;
|
|
userId: number;
|
|
};
|
|
|
|
export const deleteWebhookById = async ({ id, userId }: DeleteWebhookByIdOptions) => {
|
|
return await prisma.webhook.delete({
|
|
where: {
|
|
id,
|
|
userId,
|
|
},
|
|
});
|
|
};
|