Skip to content

Commit da279fd

Browse files
committed
fix(billing): skip the plan-ended notice when the coverage lookup fails
1 parent 45a6fe3 commit da279fd

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎apps/sim/lib/billing/webhooks/plan-notices.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ export async function sendPlanEndedEmail(ended: {
143143
try {
144144
if (!isPaid(ended.plan)) return
145145
const ownerId = await resolvePlanOwnerId(ended.referenceId)
146-
const current = await getHighestPrioritySubscription(ownerId)
146+
const current = await getHighestPrioritySubscription(ownerId, { onError: 'throw' })
147147
const stillPaid =
148148
current &&
149149
current.id !== ended.id &&

0 commit comments

Comments
 (0)