Skip to content

Commit

Permalink
fix: cast to integer before saving
Browse files Browse the repository at this point in the history
  • Loading branch information
wa0x6e committed Jan 24, 2024
1 parent 5326c38 commit 0eaf2c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/writer/proposal.ts
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ export async function action(body, ipfs, receipt, id): Promise<void> {
scores_updated: 0,
votes: 0,
validation,
flagged: containsFlaggedLinks(msg.payload.body) ? 1 : 0
flagged: +containsFlaggedLinks(msg.payload.body) ? 1 : 0
};

const query = 'INSERT IGNORE INTO proposals SET ?; ';
Expand Down

0 comments on commit 0eaf2c2

Please sign in to comment.