aboutsummaryrefslogtreecommitdiff
path: root/packages/taler-wallet-core/src/operations/refresh.ts
diff options
context:
space:
mode:
authorFlorian Dold <florian@dold.me>2021-11-03 13:17:57 +0100
committerFlorian Dold <florian@dold.me>2021-11-03 13:17:57 +0100
commitab6fd6c8c72ac674648ef66d7bcec01f7a232410 (patch)
tree40066da2dedb3593598ac13670ae83e4001eebce /packages/taler-wallet-core/src/operations/refresh.ts
parent082bef334659502b6b27b4f61d6f58aab90a7710 (diff)
downloadwallet-core-ab6fd6c8c72ac674648ef66d7bcec01f7a232410.tar.xz
move HTTP status codes to taler-util
Diffstat (limited to 'packages/taler-wallet-core/src/operations/refresh.ts')
-rw-r--r--packages/taler-wallet-core/src/operations/refresh.ts5
1 files changed, 2 insertions, 3 deletions
diff --git a/packages/taler-wallet-core/src/operations/refresh.ts b/packages/taler-wallet-core/src/operations/refresh.ts
index 144514e1c..d727bd06f 100644
--- a/packages/taler-wallet-core/src/operations/refresh.ts
+++ b/packages/taler-wallet-core/src/operations/refresh.ts
@@ -14,7 +14,7 @@
GNU Taler; see the file COPYING. If not, see <http://www.gnu.org/licenses/>
*/
-import { encodeCrock, getRandomBytes } from "@gnu-taler/taler-util";
+import { encodeCrock, getRandomBytes, HttpStatusCode } from "@gnu-taler/taler-util";
import {
CoinRecord,
CoinSourceType,
@@ -40,7 +40,6 @@ import {
import { AmountJson, Amounts } from "@gnu-taler/taler-util";
import { amountToPretty } from "@gnu-taler/taler-util";
import {
- HttpResponseStatus,
readSuccessResponseJsonOrThrow,
readUnexpectedResponseDetails,
} from "../util/http.js";
@@ -377,7 +376,7 @@ async function refreshMelt(
});
});
- if (resp.status === HttpResponseStatus.NotFound) {
+ if (resp.status === HttpStatusCode.NotFound) {
const errDetails = await readUnexpectedResponseDetails(resp);
await ws.db
.mktx((x) => ({