Skip to content

Commit

Permalink
Ignore missing website id.
Browse files Browse the repository at this point in the history
  • Loading branch information
mikecao committed Nov 28, 2024
1 parent afa903a commit 4af275a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/pages/api/send.ts
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,10 @@ export default async (req: NextApiRequestCollect, res: NextApiResponse) => {

session.iat = iat;

if (!session.websiteId) {
return;
}

if (type === COLLECTION_TYPE.event) {
// eslint-disable-next-line prefer-const
let [urlPath, urlQuery] = safeDecodeURI(url)?.split('?') || [];
Expand Down

0 comments on commit 4af275a

Please sign in to comment.