-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feat/notifications update #333
Feat/notifications update #333
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
src/processor.ts
Outdated
if (JOYSTREAM_USD_PRICE === null) { | ||
await updateJoystreamPrice() | ||
schedulePriceUpdate() | ||
.then(() => undefined) | ||
.catch(() => ctx.log.error('Fetching JOYSTREAM price failed')) | ||
} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just noticed that you are updating the JOYSTREAM_USD_PRICE
in the orion_processor
process, however, the value is being used in the email-scheduler cron job, where the value will always be null.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just one small comment, also please bump package version and add Changelog. Thaks
src/processor.ts
Outdated
if (JOYSTREAM_USD_PRICE === null) { | ||
await updateJoystreamPrice() | ||
schedulePriceUpdate() | ||
.then(() => undefined) | ||
.catch(() => undefined) | ||
} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if (JOYSTREAM_USD_PRICE === null) { | |
await updateJoystreamPrice() | |
schedulePriceUpdate() | |
.then(() => undefined) | |
.catch(() => undefined) | |
} |
It's not needed here now
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
* Add joy price data * Change email notification subject copies * Decrease interval * CR fixes * remove scheduler from processor --------- Co-authored-by: Zeeshan Akram <97m.zeeshan@gmail.com>
No description provided.