aboutsummaryrefslogtreecommitdiffstats
path: root/src/routes/invoice.js
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2022-07-25 21:45:41 -0700
committerAdam Soltys <[email protected]>2022-07-25 21:45:41 -0700
commite1224efb4e96ed23a32dc6af92156cc99bc565fe (patch)
tree45bd2bffa3e4e8342f849082e6942b49407aead1 /src/routes/invoice.js
parent482df6b7ac12636221a898513ef944205617167d (diff)
downloadcoinos-ui-e1224efb4e96ed23a32dc6af92156cc99bc565fe.tar.gz
coinos-ui-e1224efb4e96ed23a32dc6af92156cc99bc565fe.zip
socket reconnection logic
Diffstat (limited to 'src/routes/invoice.js')
-rw-r--r--src/routes/invoice.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/routes/invoice.js b/src/routes/invoice.js
index fa493fe1..49bcfe70 100644
--- a/src/routes/invoice.js
+++ b/src/routes/invoice.js
@@ -10,11 +10,11 @@ export async function GET({ params }) {
})
.text();
- let body = await got
+ await got
.post('http://localhost:3119/invoice', {
json: { invoice: { text, network }, user: { username } }
})
.json();
- return { body };
+ return { body: { text } };
}