diff options
author | Vidhu Kant Sharma <vidhukant@vidhukant.xyz> | 2022-11-11 23:28:13 +0530 |
---|---|---|
committer | Vidhu Kant Sharma <vidhukant@vidhukant.xyz> | 2022-11-11 23:28:13 +0530 |
commit | 9ca1864b79ede841e71836132effc2e260b4e758 (patch) | |
tree | dfb76a9cc85a6d7c21803cef842b530a48a2c2fa /src/classes/client.js | |
parent | b944cfb33efd63c335305f9535054ea4f02acd59 (diff) |
added very basic functionality to generate and list invoices
Diffstat (limited to 'src/classes/client.js')
-rw-r--r-- | src/classes/client.js | 4 |
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)) } |