2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-05-02 13:28:49 +00:00

Whoops, fixed the API callbacks

This commit is contained in:
Oliver 2018-05-06 19:33:43 +10:00
parent 366e03456e
commit 58cd933a5d

View File

@ -33,9 +33,9 @@ function inventreeGet(url, filters={}, callback=null) {
console.error('Error on GET at ' + url); console.error('Error on GET at ' + url);
console.error(thrownError); console.error(thrownError);
if (callback) { if (callback) {
return { callback({
error: thrownError; error: thrownError
} });
} }
} }
}) })
@ -70,8 +70,8 @@ function inventreeUpdate(url, data, callback=null, final=false) {
console.error(thrownError); console.error(thrownError);
if (callback) { if (callback) {
callback({ callback({
error: thrownError; error: thrownError
}) });
} }
} }
}) })