Commit 35580691 authored by Romain Courteaud's avatar Romain Courteaud

Fix error reporting with attachment methods.

parent cc570aac
...@@ -347,12 +347,12 @@ ...@@ -347,12 +347,12 @@
} }
}); });
declareMethod(JioProxyStorage, 'removeAttachment', function (param) { declareMethod(JioProxyStorage, 'removeAttachment', function (param, storage, method_name) {
checkId(param); checkId(param, storage, method_name);
checkAttachmentId(param); checkAttachmentId(param);
}); });
declareMethod(JioProxyStorage, 'getAttachment', function (param) { declareMethod(JioProxyStorage, 'getAttachment', function (param, storage, method_name) {
// if (param.storage_spec.type !== "indexeddb" && // if (param.storage_spec.type !== "indexeddb" &&
// param.storage_spec.type !== "dav" && // param.storage_spec.type !== "dav" &&
// (param.kwargs._start !== undefined // (param.kwargs._start !== undefined
...@@ -364,7 +364,7 @@ ...@@ -364,7 +364,7 @@
// ]); // ]);
// return false; // return false;
// } // }
checkId(param); checkId(param, storage, method_name);
checkAttachmentId(param); checkAttachmentId(param);
}); });
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment