Skip to content

Wire insurance expiry checks into the daily alert run - #1557

Merged
yusuftomilola merged 1 commit into
DistinctCodes:mainfrom
demilade18-git:fix/expiry-alerts-warranty-insurance
Sep 26, 2026
Merged

yusuftomilola merged 1 commit into
DistinctCodes:mainfrom
demilade18-git:fix/expiry-alerts-warranty-insurance

Conversation

@demilade18-git

Copy link
Copy Markdown
Contributor

Summary

ExpiryAlertsService only checked warranty and maintenance expiries, not insurance. Adds checkInsuranceExpiries(), called from the same daily cron run as the existing checks.

Closes #1424

Note

Asset (assets/entities/asset.entity.ts) currently has no insuranceExpiry field — only warrantyExpiry. The new check is a stub matching the existing checkWarrantyExpiries/checkMaintenanceDue maturity level (both are also TODO stubs with no repository wired in) rather than a real query, since adding the field itself is a separate-file/migration change. Flagged in a comment so the gap doesn't silently reappear once the field is added.

Test plan

  • Manual review of the diff — additive, mirrors the existing stub pattern exactly
  • Not run through npm install/build/test — no node_modules present locally

ExpiryAlertsService only checked warranty and maintenance expiries,
not insurance. Adds checkInsuranceExpiries(), called from the same
daily cron run as the existing checks.

Asset currently has no insuranceExpiry field (only warrantyExpiry),
so this is a stub matching the existing checkWarrantyExpiries/
checkMaintenanceDue maturity level rather than a real query - flagged
in a comment so the gap is visible once the field is added.
@vercel

vercel Bot commented Sep 25, 2026

Copy link
Copy Markdown

@demilade18-git is attempting to deploy a commit to the naijabuz's projects Team on Vercel.

A member of the Team first needs to authorize it.

@drips-wave

drips-wave Bot commented Sep 25, 2026

Copy link
Copy Markdown

@demilade18-git Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@yusuftomilola
yusuftomilola merged commit 3ac99a8 into DistinctCodes:main Sep 26, 2026
0 of 10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Expiry alerts don't cover warranty or insurance

2 participants