fix: hide team webhooks from users

This commit is contained in:
David Nguyen
2024-04-25 23:32:59 +07:00
parent 0062359977
commit e1573465f6

View File

@ -4,6 +4,7 @@ export const getWebhooksByUserId = async (userId: number) => {
return await prisma.webhook.findMany({
where: {
userId,
teamId: null,
},
orderBy: {
createdAt: 'desc',