send interest email#1179
Conversation
Codecov Report
@@ Coverage Diff @@
## develop #1179 +/- ##
===========================================
- Coverage 99.65% 99.65% -0.01%
===========================================
Files 318 317 -1
Lines 10758 10659 -99
Branches 1562 1541 -21
===========================================
- Hits 10721 10622 -99
Misses 37 37
Continue to review full report at Codecov.
|
| NEED_CONNECTIONS: ['postgre', 'redis', 'coins', 'special-wallet'], | ||
|
|
||
| repeaters: {}, | ||
| aggregateNotifications: [], |
There was a problem hiding this comment.
I got the logic, but:
This is fucking ugly
This is not scalable: I guess even with the low users we have now the process will crash by trying to keep all this data in memory. The best way for me seems to be after interest have been distributed make a second crawl to find all user that received at least one interest coming for this new interest rate list, then trigger email push notification. Will be nice to add global summary in euro 'This week you've received xxEur interest'.
I'm ok to try to accomplish this, I fear it will not work because sometime we do not received all interest for all currency in one shot, like we received some currency in first shot, then few hours later some other batch of currency.... We can't do much with this.... Then it will trigger twice the email summary
There was a problem hiding this comment.
yep you right its not scalable, I will improve it
|
@cristianizzo this branch has conflict since I've merged the investment improvement |
1 similar comment
|
@cristianizzo this branch has conflict since I've merged the investment improvement |
https://amontech.atlassian.net/jira/software/projects/AMNCARD/boards/2?selectedIssue=AMNCARD-119