[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-wallet-core] branch master updated: another missing store ...
From: |
gnunet |
Subject: |
[taler-wallet-core] branch master updated: another missing store ... |
Date: |
Thu, 26 Mar 2020 17:28:44 +0100 |
This is an automated email from the git hooks/post-receive script.
dold pushed a commit to branch master
in repository wallet-core.
The following commit(s) were added to refs/heads/master by this push:
new 86c8a8fc another missing store ...
86c8a8fc is described below
commit 86c8a8fcf3115fd4957de113a03204ed22afe7e0
Author: Florian Dold <address@hidden>
AuthorDate: Thu Mar 26 21:58:38 2020 +0530
another missing store ...
---
src/operations/recoup.ts | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/src/operations/recoup.ts b/src/operations/recoup.ts
index 7eba8330..107b9044 100644
--- a/src/operations/recoup.ts
+++ b/src/operations/recoup.ts
@@ -55,7 +55,7 @@ async function incrementRecoupRetry(
recoupGroupId: string,
err: OperationError | undefined,
): Promise<void> {
- await ws.db.runWithWriteTransaction([Stores.recoupGroups], async tx => {
+ await ws.db.runWithWriteTransaction([Stores.recoupGroups], async (tx) => {
const r = await tx.get(Stores.recoupGroups, recoupGroupId);
if (!r) {
return;
@@ -100,7 +100,7 @@ async function recoupTipCoin(
// We can't really recoup a coin we got via tipping.
// Thus we just put the coin to sleep.
// FIXME: somehow report this to the user
- await ws.db.runWithWriteTransaction([Stores.recoupGroups], async tx => {
+ await ws.db.runWithWriteTransaction([Stores.recoupGroups], async (tx) => {
const recoupGroup = await tx.get(Stores.recoupGroups, recoupGroupId);
if (!recoupGroup) {
return;
@@ -157,7 +157,7 @@ async function recoupWithdrawCoin(
await ws.db.runWithWriteTransaction(
[Stores.coins, Stores.reserves, Stores.recoupGroups],
- async tx => {
+ async (tx) => {
const recoupGroup = await tx.get(Stores.recoupGroups, recoupGroupId);
if (!recoupGroup) {
return;
@@ -187,7 +187,7 @@ async function recoupWithdrawCoin(
type: NotificationType.RecoupFinished,
});
- forceQueryReserve(ws, reserve.reservePub).catch(e => {
+ forceQueryReserve(ws, reserve.reservePub).catch((e) => {
console.log("re-querying reserve after recoup failed:", e);
});
}
@@ -228,8 +228,8 @@ async function recoupRefreshCoin(
}
const refreshGroupId = await ws.db.runWithWriteTransaction(
- [Stores.coins, Stores.reserves, Stores.recoupGroups],
- async tx => {
+ [Stores.coins, Stores.reserves, Stores.recoupGroups, Stores.refreshGroups],
+ async (tx) => {
const recoupGroup = await tx.get(Stores.recoupGroups, recoupGroupId);
if (!recoupGroup) {
return;
@@ -261,7 +261,7 @@ async function recoupRefreshCoin(
);
if (refreshGroupId) {
- processRefreshGroup(ws, refreshGroupId.refreshGroupId).then(e => {
+ processRefreshGroup(ws, refreshGroupId.refreshGroupId).then((e) => {
console.error("error while refreshing after recoup", e);
});
}
@@ -271,7 +271,7 @@ async function resetRecoupGroupRetry(
ws: InternalWalletState,
recoupGroupId: string,
) {
- await ws.db.mutate(Stores.recoupGroups, recoupGroupId, x => {
+ await ws.db.mutate(Stores.recoupGroups, recoupGroupId, (x) => {
if (x.retryInfo.active) {
x.retryInfo = initRetryInfo();
}
--
To stop receiving notification emails like this one, please contact
address@hidden.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [taler-wallet-core] branch master updated: another missing store ...,
gnunet <=