From eaea4abaa28a51029ef71fbed20a26bd136f9516 Mon Sep 17 00:00:00 2001 From: Matthew R Date: Mon, 14 Sep 2020 02:36:55 -0400 Subject: [PATCH] pushes --- src/api/routes/Webhook.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;