fix: address issues raised in preview PR
This commit is contained in:
1 parent
9b142640d5
commit
61c82eb197
11 files changed
+16
-15
No files matched your search
@@ -5,7 +5,7 @@ export type GetSubscriberOptions = {
|
||||
eventTypeId: number;
|
||||
triggerEvent: WebhookTriggerEvents;
|
||||
};
|
||||
/** @note will this not work with custom prisma? since we're importing prisma directly and not passing it from request here **/
|
||||
|
||||
const getWebhooks = async (options: GetSubscriberOptions, prisma: PrismaClient) => {
|
||||
const { userId, eventTypeId } = options;
|
||||
const allWebhooks = await prisma.webhook.findMany({
|
||||
|
||||
Reference in new issue
Block a user