Skip to content

Commit

Permalink
added error tracking
Browse files Browse the repository at this point in the history
  • Loading branch information
amykapernick committed Jul 5, 2024
1 parent 4dfb389 commit f594777
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions utils/fetchData/currentGuest.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { currentUser } from "@clerk/nextjs/server";
import type { NotionGuest } from "@ts/people";
import type { User } from "@clerk/nextjs/server";
import { captureException } from "@sentry/nextjs";
import notion from './notion'

const fetchCurrentGuest = async (guestId?: string) =>
Expand Down Expand Up @@ -37,6 +38,11 @@ const fetchCurrentGuest = async (guestId?: string) =>
if (!guest)
{
console.log({ emailAddresses, data, guestId });
captureException(
new Error(
`Guest not found: ${ email }`
)
);
}

return ({
Expand Down

0 comments on commit f594777

Please sign in to comment.