diff options
| author | Adam Soltys <[email protected]> | 2023-09-09 18:19:31 +0000 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2023-09-09 22:49:04 -0700 |
| commit | 79b8fa2d125d26d08c4c6880c04d29b35b8ca175 (patch) | |
| tree | 5a1cbbf6b3b0c383e32f61d7e8c47c33a1e958bf | |
| parent | 6a5ba3fb2c6c261a24bbf8f151f6484e0dedc50c (diff) | |
| download | coinos-server-79b8fa2d125d26d08c4c6880c04d29b35b8ca175.tar.gz coinos-server-79b8fa2d125d26d08c4c6880c04d29b35b8ca175.zip | |
clear interval on failure
| -rw-r--r-- | routes/payments.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/routes/payments.js b/routes/payments.js index 3dd8892d..07350828 100644 --- a/routes/payments.js +++ b/routes/payments.js @@ -130,6 +130,7 @@ export default { l("refunding fee", maxfee, p.fee, maxfee - p.fee, p.ref); await db.incrBy(`balance:${p.uid}`, maxfee - p.fee); } catch (e) { + clearInterval(interval); warn("something went wrong", e.message); await check(); throw e; |
