aboutsummaryrefslogtreecommitdiff
path: root/src/classes/client.js
diff options
context:
space:
mode:
authorVidhu Kant Sharma <vidhukant@vidhukant.xyz>2022-11-11 23:28:13 +0530
committerVidhu Kant Sharma <vidhukant@vidhukant.xyz>2022-11-11 23:28:13 +0530
commit9ca1864b79ede841e71836132effc2e260b4e758 (patch)
treedfb76a9cc85a6d7c21803cef842b530a48a2c2fa /src/classes/client.js
parentb944cfb33efd63c335305f9535054ea4f02acd59 (diff)
added very basic functionality to generate and list invoices
Diffstat (limited to 'src/classes/client.js')
-rw-r--r--src/classes/client.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/classes/client.js b/src/classes/client.js
index d05655d..baa2ed7 100644
--- a/src/classes/client.js
+++ b/src/classes/client.js
@@ -54,8 +54,8 @@ export class InvoiceClient extends Client {
}
}
-export const saveClient = (item, ok, fail) => {
- axios.post("/client/new", item)
+export const saveClient = (client, ok, fail) => {
+ axios.post("/client/new", client)
.then(res => ok(res))
.catch(err => fail(err))
}