diff --git a/src/api/routes/Webhook.ts b/src/api/routes/Webhook.ts index d8fc994..c5797e4 100644 --- a/src/api/routes/Webhook.ts +++ b/src/api/routes/Webhook.ts @@ -56,7 +56,7 @@ export default class Webhook extends Route { locks: [], deletes: [], }; - if (account.totalReferrals && account.totalReferrals > 0) response.totalReferrals = account.totalReferrals; + if (account?.totalReferrals && account?.totalReferrals > 0) response.totalReferrals = account.totalReferrals; if (moderations.length > 0) { for (const moderation of moderations) { if (moderation.reason?.includes('DN/C')) continue;