Skip to content
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

Merged
merged 6 commits into from
May 31, 2024

Conversation

ikprk
Copy link
Collaborator

@ikprk ikprk commented May 24, 2024

No description provided.

@ikprk ikprk requested a review from zeeshanakram3 May 24, 2024 08:26
Copy link
Contributor

@zeeshanakram3 zeeshanakram3 left a 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
Comment on lines 381 to 387
if (JOYSTREAM_USD_PRICE === null) {
await updateJoystreamPrice()
schedulePriceUpdate()
.then(() => undefined)
.catch(() => ctx.log.error('Fetching JOYSTREAM price failed'))
}

Copy link
Contributor

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.

Copy link
Contributor

@zeeshanakram3 zeeshanakram3 left a 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
Comment on lines 381 to 387
if (JOYSTREAM_USD_PRICE === null) {
await updateJoystreamPrice()
schedulePriceUpdate()
.then(() => undefined)
.catch(() => undefined)
}

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
if (JOYSTREAM_USD_PRICE === null) {
await updateJoystreamPrice()
schedulePriceUpdate()
.then(() => undefined)
.catch(() => undefined)
}

It's not needed here now

Copy link
Contributor

@zeeshanakram3 zeeshanakram3 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@zeeshanakram3 zeeshanakram3 merged commit d65135f into Joystream:master May 31, 2024
7 checks passed
malchililj pushed a commit to malchililj/orion that referenced this pull request Sep 3, 2024
* 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>
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.

2 participants