use number
This commit is contained in:
parent
bfa71f7439
commit
c18b79dc50
2 changed files with 4 additions and 4 deletions
|
|
@ -165,12 +165,12 @@ export default class {
|
||||||
for (const appUserId of appUserIds) {
|
for (const appUserId of appUserIds) {
|
||||||
const appUser = await this.dbs.FindOne<ApplicationUser>('ApplicationUser', { where: { identifier: appUserId } }, txId)
|
const appUser = await this.dbs.FindOne<ApplicationUser>('ApplicationUser', { where: { identifier: appUserId } }, txId)
|
||||||
if (appUser) {
|
if (appUser) {
|
||||||
await this.dbs.Delete<ApplicationUser>('ApplicationUser', { serial_id: appUser.serial_id }, txId)
|
await this.dbs.Delete<ApplicationUser>('ApplicationUser', appUser.serial_id, txId)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
const user = await this.userStorage.FindUser(baseUser, txId)
|
const user = await this.userStorage.FindUser(baseUser, txId)
|
||||||
if (!user) return
|
if (!user) return
|
||||||
await this.dbs.Delete<User>('User', { serial_id: user.serial_id }, txId)
|
await this.dbs.Delete<User>('User', user.serial_id, txId)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -144,7 +144,7 @@ export default class {
|
||||||
}
|
}
|
||||||
let deleted = 0
|
let deleted = 0
|
||||||
for (const invoice of invoices) {
|
for (const invoice of invoices) {
|
||||||
deleted += await this.dbs.Delete<UserReceivingInvoice>('UserReceivingInvoice', { serial_id: invoice.serial_id }, txId)
|
deleted += await this.dbs.Delete<UserReceivingInvoice>('UserReceivingInvoice', invoice.serial_id, txId)
|
||||||
}
|
}
|
||||||
return deleted
|
return deleted
|
||||||
}
|
}
|
||||||
|
|
@ -336,7 +336,7 @@ export default class {
|
||||||
}
|
}
|
||||||
let deleted = 0
|
let deleted = 0
|
||||||
for (const key of keys) {
|
for (const key of keys) {
|
||||||
deleted += await this.dbs.Delete<UserEphemeralKey>('UserEphemeralKey', { serial_id: key.serial_id }, txId)
|
deleted += await this.dbs.Delete<UserEphemeralKey>('UserEphemeralKey', key.serial_id, txId)
|
||||||
}
|
}
|
||||||
return deleted
|
return deleted
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue