Skip to content
Snippets Groups Projects
Commit 841fa0a2 authored by Benoit Lavenier's avatar Benoit Lavenier
Browse files

txDAO : fix delete batch LIKE

parent fb38b8d8
No related branches found
No related tags found
No related merge requests found
Pipeline #32148 waiting for manual action
......@@ -357,7 +357,7 @@ export class SqliteTransactions extends SqliteTable<DBTx> implements TxsDAO {
while (i < hashArray.length - 1) {
const slice = hashArray.slice(i, i + 500);
await this.driver.sqlWrite(
`DELETE FROM txs WHERE hash IN (${slice.map((_) => "?")})`,
`DELETE FROM txs WHERE hash IN (${slice.map((_) => "?").join(",")})`,
slice
);
i += 500;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment