commit 9fb2b03d70017eded4ada48fe5980272d88ff05a parent 0c6247c6ec8647cb5152129d4e16e426192dfd77 Author: Florian Dold <florian@dold.me> Date: Sat, 18 Jul 2026 16:45:22 +0200 wallet-core: actually delete subscription tokens Diffstat:
| M | packages/taler-wallet-core/src/tokenFamilies.ts | | | 9 | +++++++++ |
1 file changed, 9 insertions(+), 0 deletions(-)
diff --git a/packages/taler-wallet-core/src/tokenFamilies.ts b/packages/taler-wallet-core/src/tokenFamilies.ts @@ -254,6 +254,15 @@ export async function deleteSubscription( if (inUse) { throw Error("One or more tokens in this family are in use"); } + + for (const token of tokens) { + if (logger.shouldLogTrace()) { + logger.trace( + `deleting token in ${token.tokenIssuePubHash} token family`, + ); + } + await tx.wtx.deleteToken(token.tokenUsePub); + } }); return {};