mirror of
https://github.com/documenso/documenso.git
synced 2025-11-13 08:13:56 +10:00
14 lines
259 B
TypeScript
14 lines
259 B
TypeScript
import { prisma } from '@documenso/prisma';
|
|
|
|
export const getWebhooksByUserId = async (userId: number) => {
|
|
return await prisma.webhook.findMany({
|
|
where: {
|
|
userId,
|
|
teamId: null,
|
|
},
|
|
orderBy: {
|
|
createdAt: 'desc',
|
|
},
|
|
});
|
|
};
|