From 7c7d3e001ec3fa066ad7a41876142c331e3e2f0f Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Fri, 6 Mar 2020 18:40:00 +0530 Subject: documentation / enum types for pending ops --- src/operations/pending.ts | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/operations') diff --git a/src/operations/pending.ts b/src/operations/pending.ts index 3ae44692a..9e2ff6b32 100644 --- a/src/operations/pending.ts +++ b/src/operations/pending.ts @@ -26,6 +26,7 @@ import { import { PendingOperationsResponse, PendingOperationType, + ExchangeUpdateOperationStage, } from "../types/pending"; import { Duration, getTimestampNow, Timestamp, getDurationRemaining, durationMin } from "../util/time"; import { TransactionHandle } from "../util/query"; @@ -92,7 +93,7 @@ async function gatherExchangePending( resp.pendingOperations.push({ type: PendingOperationType.ExchangeUpdate, givesLifeness: false, - stage: "fetch-keys", + stage: ExchangeUpdateOperationStage.FetchKeys, exchangeBaseUrl: e.baseUrl, lastError: e.lastError, reason: e.updateReason || "unknown", @@ -102,7 +103,7 @@ async function gatherExchangePending( resp.pendingOperations.push({ type: PendingOperationType.ExchangeUpdate, givesLifeness: false, - stage: "fetch-wire", + stage: ExchangeUpdateOperationStage.FetchWire, exchangeBaseUrl: e.baseUrl, lastError: e.lastError, reason: e.updateReason || "unknown", @@ -112,7 +113,7 @@ async function gatherExchangePending( resp.pendingOperations.push({ type: PendingOperationType.ExchangeUpdate, givesLifeness: false, - stage: "finalize-update", + stage: ExchangeUpdateOperationStage.FinalizeUpdate, exchangeBaseUrl: e.baseUrl, lastError: e.lastError, reason: e.updateReason || "unknown", -- cgit v1.2.3