Commit 57cc35d
authored
Announce email script and Fix Ktung sri glitch (#72)
This pull request introduces enhancements and fixes related to email
notification handling and payment evidence verification. The most
significant changes are the addition of a script for sending
announcement emails in bulk, improvements to error/success logging, and
a special case handling for a specific bank in payment verification.
**Email notification and logging improvements:**
* Added a new script `send.ts` to automate sending announcement emails
using a template, with robust logging for both successful and failed
deliveries (`test/noti-mail/send.ts`).
* Updated `error.json` to include a comprehensive list of email
addresses that previously failed to receive emails, improving
traceability of issues (`test/mail/log/error.json`).
* Added `old_emails.json` to store historical email and name pairs,
likely for reference or migration (`test/mail/old_emails.json`).
**Payment evidence verification fix:**
* Updated the payment evidence verification logic to handle a special
case for Krungsri bank (bank id "025"), where the English receiver name
may be in Thai, ensuring correct validation against the configured
receiver name (`application-payment-evidence.service.ts`).7 files changed
Lines changed: 1346 additions & 2682 deletions
File tree
- src/modules/application-payment-evidence
- test
- mail
- log
- noti-mail
Lines changed: 11 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
65 | 65 | | |
66 | 66 | | |
67 | 67 | | |
| 68 | + | |
68 | 69 | | |
69 | | - | |
70 | | - | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
71 | 80 | | |
72 | 81 | | |
73 | 82 | | |
| |||
0 commit comments