Skip to content

Commit

Permalink
Fixes publisher banner being empty in the db
Browse files Browse the repository at this point in the history
  • Loading branch information
NejcZdovc committed Sep 5, 2019
1 parent ce57c1b commit 8cd8bb9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -237,5 +237,5 @@ struct ServerPublisherInfo {
PublisherStatus status = PublisherStatus.NOT_VERIFIED;
bool excluded = false;
string address;
PublisherBanner banner;
PublisherBanner? banner;
};
Original file line number Diff line number Diff line change
Expand Up @@ -888,7 +888,10 @@ void Publisher::OnGetPublisherBanner(
auto banner = ledger::PublisherBanner::New();

if (info) {
banner = info->banner->Clone();
if (info->banner) {
banner = info->banner->Clone();
}

banner->status = info->status;
}

Expand Down

0 comments on commit 8cd8bb9

Please sign in to comment.