@xuda.io/drive_module 1.1.804 → 1.1.805
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +5 -1
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -2777,7 +2777,7 @@ const get_drive_doc = async function (
|
|
|
2777
2777
|
return doc;
|
|
2778
2778
|
};
|
|
2779
2779
|
|
|
2780
|
-
const save_drive_doc = async function (drive_type, app_id,
|
|
2780
|
+
const save_drive_doc = async function (drive_type, app_id, doc) {
|
|
2781
2781
|
let save_ret;
|
|
2782
2782
|
|
|
2783
2783
|
switch (drive_type) {
|
|
@@ -2795,5 +2795,9 @@ const save_drive_doc = async function (drive_type, app_id, uid, doc) {
|
|
|
2795
2795
|
break;
|
|
2796
2796
|
}
|
|
2797
2797
|
|
|
2798
|
+
if (save_ret.code < 0) {
|
|
2799
|
+
throw new Error(save_ret.data);
|
|
2800
|
+
}
|
|
2801
|
+
|
|
2798
2802
|
return save_ret;
|
|
2799
2803
|
};
|