diff --git a/src/services/storage/applicationStorage.ts b/src/services/storage/applicationStorage.ts index dba5b466..402e7773 100644 --- a/src/services/storage/applicationStorage.ts +++ b/src/services/storage/applicationStorage.ts @@ -165,12 +165,12 @@ export default class { for (const appUserId of appUserIds) { const appUser = await this.dbs.FindOne('ApplicationUser', { where: { identifier: appUserId } }, txId) if (appUser) { - await this.dbs.Delete('ApplicationUser', { serial_id: appUser.serial_id }, txId) + await this.dbs.Delete('ApplicationUser', appUser.serial_id, txId) } } const user = await this.userStorage.FindUser(baseUser, txId) if (!user) return - await this.dbs.Delete('User', { serial_id: user.serial_id }, txId) + await this.dbs.Delete('User', user.serial_id, txId) } diff --git a/src/services/storage/paymentStorage.ts b/src/services/storage/paymentStorage.ts index 16f17f75..092ef8df 100644 --- a/src/services/storage/paymentStorage.ts +++ b/src/services/storage/paymentStorage.ts @@ -144,7 +144,7 @@ export default class { } let deleted = 0 for (const invoice of invoices) { - deleted += await this.dbs.Delete('UserReceivingInvoice', { serial_id: invoice.serial_id }, txId) + deleted += await this.dbs.Delete('UserReceivingInvoice', invoice.serial_id, txId) } return deleted } @@ -336,7 +336,7 @@ export default class { } let deleted = 0 for (const key of keys) { - deleted += await this.dbs.Delete('UserEphemeralKey', { serial_id: key.serial_id }, txId) + deleted += await this.dbs.Delete('UserEphemeralKey', key.serial_id, txId) } return deleted }