use number

This commit is contained in:
shocknet-justin 2026-03-02 15:10:24 -05:00
parent bfa71f7439
commit c18b79dc50
No known key found for this signature in database
2 changed files with 4 additions and 4 deletions

View file

@ -165,12 +165,12 @@ export default class {
for (const appUserId of appUserIds) {
const appUser = await this.dbs.FindOne<ApplicationUser>('ApplicationUser', { where: { identifier: appUserId } }, txId)
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)
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)
}

View file

@ -144,7 +144,7 @@ export default class {
}
let deleted = 0
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
}
@ -336,7 +336,7 @@ export default class {
}
let deleted = 0
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
}