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

Fix: node uptime #2497

Merged
merged 4 commits into from
Mar 27, 2024
Merged

Fix: node uptime #2497

merged 4 commits into from
Mar 27, 2024

Conversation

0oM4R
Copy link
Contributor

@0oM4R 0oM4R commented Mar 26, 2024

Description

for the mentioned nodes, they were created early this month, so there will be no minting receipts for them until the next month,
so getting the reports was failing and exiting the function, The next few lines in the function is related to up-time calculation, which was not reached, so the result is 0%

Changes

add getting minting reports to try block to make sure the function will continue even if there is an error with fetching receipts

Related Issues

Documentation PR

For UI changes, Plaese provide the Documetation PR on info_grid

Checklist

  • Tests included
  • Build pass
  • Documentation
  • Code format and docstrings
  • Screenshots/Video attached (needed for UI changes)

add getting minting reports to try block to make sure the function will continue even if there is an error with fetching receipts
@@ -204,7 +204,7 @@ export default {
async function getUserNodes() {
try {
loading.value = true;
const twinId = profileManager.profile!.twinId;
const twinId = 11261;
Copy link
Member

Choose a reason for hiding this comment

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

why did we use 11261 as twinId instead of logged in user's one?

Copy link
Contributor

@samaradel samaradel left a comment

Choose a reason for hiding this comment

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

Good job!

@amiraabouhadid amiraabouhadid merged commit 1af5db5 into development Mar 27, 2024
3 checks passed
@amiraabouhadid amiraabouhadid deleted the development_fix_uptime branch March 27, 2024 23:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants