Skip to content

Commit

Permalink
Fixes restore normalize
Browse files Browse the repository at this point in the history
  • Loading branch information
NejcZdovc committed Jan 16, 2019
1 parent 0ee2f71 commit 53c490b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
7 changes: 4 additions & 3 deletions vendor/bat-native-ledger/src/bat_publishers.cc
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,7 @@ std::unique_ptr<ledger::PublisherInfo> BatPublishers::onPublisherInfoUpdated(
return info;
}

synopsisNormalizer(*info);
synopsisNormalizer();

return info;
}
Expand Down Expand Up @@ -367,7 +367,7 @@ void BatPublishers::onSetPublisherInfo(ledger::Result result,
if (result != ledger::Result::LEDGER_OK) {
return;
}
synopsisNormalizer(*publisher_info);
synopsisNormalizer();
}

void BatPublishers::onSetPanelExcludeInternal(ledger::PUBLISHER_EXCLUDE exclude,
Expand Down Expand Up @@ -418,6 +418,7 @@ void BatPublishers::OnRestorePublishersInternal(bool success) {
if (success) {
setNumExcludedSites(0);
OnExcludedSitesChanged("");
synopsisNormalizer();
} else {
BLOG(ledger_, ledger::LogLevel::LOG_ERROR) <<
"Could not restore publishers.";
Expand Down Expand Up @@ -558,7 +559,7 @@ void BatPublishers::synopsisNormalizerInternal(
}
}

void BatPublishers::synopsisNormalizer(const ledger::PublisherInfo& info) {
void BatPublishers::synopsisNormalizer() {
auto filter = CreateActivityFilter("",
ledger::ACTIVITY_MONTH::ANY,
-1,
Expand Down
2 changes: 1 addition & 1 deletion vendor/bat-native-ledger/src/bat_publishers.h
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ class BatPublishers : public ledger::LedgerCallbackHandler {

void calcScoreConsts();

void synopsisNormalizer(const ledger::PublisherInfo& info);
void synopsisNormalizer();
void synopsisNormalizerInternal(ledger::PublisherInfoList* newList, bool saveData,
const ledger::PublisherInfoList& list, uint32_t /* next_record */);

Expand Down

0 comments on commit 53c490b

Please sign in to comment.