From e2389b9b271ee1eaaed78a6cb725102b6902733c Mon Sep 17 00:00:00 2001 From: boufni95 Date: Mon, 2 Mar 2026 19:40:29 +0000 Subject: [PATCH] cleaup logs --- src/services/main/appUserManager.ts | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/services/main/appUserManager.ts b/src/services/main/appUserManager.ts index 2a2ade08..2066f0cb 100644 --- a/src/services/main/appUserManager.ts +++ b/src/services/main/appUserManager.ts @@ -178,15 +178,24 @@ export default class { const { userId, appUserIds } = toDelete[i] this.log("Deleting user", userId, "progress", i + 1, "/", toDelete.length) await this.storage.StartTransaction(async tx => { - for (const appUserId of appUserIds) { + for (let j = 0; j < appUserIds.length; j++) { + const appUserId = appUserIds[j] + this.log("Deleting app user", appUserId, "progress", j + 1, "/", appUserIds.length) + this.log("Removing user grants") await this.storage.managementStorage.removeUserGrants(appUserId, tx) + this.log("Removing user offers") await this.storage.offerStorage.DeleteUserOffers(appUserId, tx) + this.log("Removing user debit access") await this.storage.debitStorage.RemoveUserDebitAccess(appUserId, tx) + this.log("Removing user devices") await this.storage.applicationStorage.RemoveAppUserDevices(appUserId, tx) } + this.log("Removing user invoices") await this.storage.paymentStorage.RemoveUserInvoices(userId, tx) + this.log("Removing user products") await this.storage.productStorage.RemoveUserProducts(userId, tx) + this.log("Removing user ephemeral keys") await this.storage.paymentStorage.RemoveUserEphemeralKeys(userId, tx) }) }