Skip to content

Commit

Permalink
fix type
Browse files Browse the repository at this point in the history
  • Loading branch information
howardchung committed Nov 29, 2023
1 parent 3766232 commit c6a93e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion svc/cassandraDelete.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ async function start() {
));

const parsedIds = result.rows.filter(result => result.version != null).map(result => result.match_id);
await Promise.all(parsedIds.map(id => db.raw(`INSERT INTO parsed_matches(match_id) VALUES(?) ON CONFLICT DO NOTHING`, [id])));
await Promise.all(parsedIds.map(id => db.raw(`INSERT INTO parsed_matches(match_id) VALUES(?) ON CONFLICT DO NOTHING`, [Number(id)])));
} catch(e) {
console.log(e);
}
Expand Down

0 comments on commit c6a93e5

Please sign in to comment.