@xuda.io/drive_module 1.1.806 → 1.1.807
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 +0 -17
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -1264,23 +1264,6 @@ exports.update_drive_file_sharing_mode = async function (req, job_id, headers) {
|
|
|
1264
1264
|
doc.ts = Date.now();
|
|
1265
1265
|
doc.public = is_public;
|
|
1266
1266
|
|
|
1267
|
-
let save_ret;
|
|
1268
|
-
|
|
1269
|
-
switch (drive_type) {
|
|
1270
|
-
case "workspace":
|
|
1271
|
-
case "studio":
|
|
1272
|
-
const app_id_reference = await _common.get_project_app_id(app_id);
|
|
1273
|
-
save_ret = await db_module.save_app_couch_doc(app_id_reference, doc);
|
|
1274
|
-
break;
|
|
1275
|
-
|
|
1276
|
-
case "user":
|
|
1277
|
-
save_ret = await db_module.save_couch_doc("xuda_drive", doc);
|
|
1278
|
-
break;
|
|
1279
|
-
|
|
1280
|
-
default:
|
|
1281
|
-
break;
|
|
1282
|
-
}
|
|
1283
|
-
|
|
1284
1267
|
return await save_drive_doc(drive_type, app_id, doc);
|
|
1285
1268
|
} catch (err) {
|
|
1286
1269
|
return err.message;
|