feat: added backend stuff

This commit is contained in:
Catalin Pit
2024-02-09 16:07:33 +02:00
parent b3514bd0c7
commit ddb9dd11d7
6 changed files with 138 additions and 19 deletions

View File

@@ -0,0 +1,9 @@
import { prisma } from '@documenso/prisma';
export const getWebhooksByUserId = async (userId: number) => {
return await prisma.webhook.findMany({
where: {
userId,
},
});
};