diff options
| author | Adam Soltys <[email protected]> | 2024-11-12 23:49:24 -0800 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2024-11-12 23:49:24 -0800 |
| commit | c16f5d72d9cea86ce0606d98f7112f0421040a8e (patch) | |
| tree | 5739ef7644b56f36d7035cd8dc9951a881896f21 | |
| parent | 2aefd8856084b314f0ea640b2136a5fce2d529c0 (diff) | |
| download | coinos-server-c16f5d72d9cea86ce0606d98f7112f0421040a8e.tar.gz coinos-server-c16f5d72d9cea86ce0606d98f7112f0421040a8e.zip | |
mark outgoing payments confirmed
| -rw-r--r-- | lib/payments.ts | 2 | ||||
| -rw-r--r-- | lib/rates.ts | 1 |
2 files changed, 1 insertions, 2 deletions
diff --git a/lib/payments.ts b/lib/payments.ts index 0ae84f10..bc209684 100644 --- a/lib/payments.ts +++ b/lib/payments.ts @@ -116,7 +116,7 @@ export const debit = async ({ memo, iid, uid, - confirmed: ![types.bitcoin, types.liquid].includes(type), + confirmed: true, rate, currency, type, diff --git a/lib/rates.ts b/lib/rates.ts index 5f98af42..d9ae7f8d 100644 --- a/lib/rates.ts +++ b/lib/rates.ts @@ -60,7 +60,6 @@ export const getFx = async () => { ({ rates: fx } = (await got( `http://data.fixer.io/api/latest?access_key=${config.fixer}&base=USD`, ).json()) as any); - } else { ({ fx } = (await got("https://coinos.io/api/fx").json()) as any); } |
