Skip to content
This repository has been archived by the owner on Oct 4, 2019. It is now read-only.

Commit

Permalink
Minor bugfix after merge #421
Browse files Browse the repository at this point in the history
  • Loading branch information
vpavliv committed Mar 15, 2018
1 parent 5e184bb commit 532d163
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
Expand Up @@ -79,6 +79,7 @@ namespace mongo_db {
void operator()(const fill_transfer_from_savings_operation &op);
void operator()(const hardfork_operation &op);
void operator()(const comment_payout_update_operation &op);
void operator()(const comment_benefactor_reward_operation& op);

private:
document data;
Expand Down
11 changes: 11 additions & 0 deletions plugins/mongo_db/mongo_db_operations.cpp
Expand Up @@ -677,4 +677,15 @@ namespace mongo_db {
body << "comment_payout_update" << body;
}

void operation_writer::operator()(const comment_benefactor_reward_operation& op) {
document body;

body << "benefactor" << op.benefactor
<< "author" << op.author
<< "permlink" << op.permlink;
body << "reward" << format_asset(op.reward);

body << "comment_benefactor_reward_operation" << body;
}

}}}

0 comments on commit 532d163

Please sign in to comment.