Skip to content

Commit

Permalink
fix: excludeFromIndexes wasn't passed to commitTransaction
Browse files Browse the repository at this point in the history
  • Loading branch information
kirillgroshkov committed Nov 2, 2022
1 parent 32bcbd9 commit 6e3f333
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/datastore.db.ts
Original file line number Diff line number Diff line change
Expand Up @@ -327,9 +327,9 @@ export class DatastoreDB extends BaseCommonDB implements CommonDB {

for await (const op of ops) {
if (op.type === 'saveBatch') {
await this.saveBatch(op.table, op.rows, { ...opt, tx })
await this.saveBatch(op.table, op.rows, { ...op.opt, ...opt, tx })
} else if (op.type === 'deleteByIds') {
await this.deleteByIds(op.table, op.ids, { ...opt, tx })
await this.deleteByIds(op.table, op.ids, { ...op.opt, ...opt, tx })
} else {
throw new Error(`DBOperation not supported: ${(op as any).type}`)
}
Expand Down

0 comments on commit 6e3f333

Please sign in to comment.