-
Notifications
You must be signed in to change notification settings - Fork 869
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 ads count isn't increasing for upgrade path #2793
Conversation
@@ -14,4 +14,19 @@ uint64_t Time::NowInSeconds() { | |||
return now.ToDoubleT(); | |||
} | |||
|
|||
uint64_t Time::MigrateToDoubleT(const uint64_t seconds) { | |||
if (date_in_seconds < 10000000000) { |
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.
Maybe I'm missing it, but what is date_in_seconds
? Do you mean seconds
?
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.
Refactored to be more concise
vendor/bat-native-confirmations/src/bat/confirmations/internal/time.cc
Outdated
Show resolved
Hide resolved
b114a55
to
be50abb
Compare
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
908a053
to
7e3786e
Compare
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.
CI checks complete. Network audit failed but unrelated to the PR. Confirmed with @bbondy
Fixes brave/brave-browser#5037
Submitter Checklist:
npm run lint
)git rebase master
(if needed).git rebase -i
to squash commits (if needed).Test Plan:
Confirm after upgrade that legacy timestamps have been migrated by comparing
defaults/rewards_service/confirmations.json
before and after the upgrade. Also confirm tokens are cashed out and ad notifications received show the correct amounts after an upgradeReviewer Checklist:
After-merge Checklist:
changes has landed on.