@xuda.io/drive_module 1.1.535 → 1.1.537
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 +15 -0
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -891,6 +891,10 @@ exports.rename_drive_file = async function (req) {
|
|
|
891
891
|
doc_ret.data._id = file_name_to;
|
|
892
892
|
delete doc_ret.data._rev;
|
|
893
893
|
}
|
|
894
|
+
misc_module.rsync_drive_resources_to_remote_servers(
|
|
895
|
+
"studio",
|
|
896
|
+
app_id_master
|
|
897
|
+
);
|
|
894
898
|
break;
|
|
895
899
|
}
|
|
896
900
|
case "workspace": {
|
|
@@ -984,6 +988,11 @@ exports.rename_drive_folder = async function (req) {
|
|
|
984
988
|
|
|
985
989
|
doc_ret.data._id = file_name_to;
|
|
986
990
|
delete doc_ret.data._rev;
|
|
991
|
+
|
|
992
|
+
misc_module.rsync_drive_resources_to_remote_servers(
|
|
993
|
+
"studio",
|
|
994
|
+
app_id_reference
|
|
995
|
+
);
|
|
987
996
|
break;
|
|
988
997
|
}
|
|
989
998
|
case "workspace": {
|
|
@@ -1405,6 +1414,7 @@ exports.upload_drive_file = async function (req, job_id, headers, file_obj) {
|
|
|
1405
1414
|
doc._id = file_name;
|
|
1406
1415
|
|
|
1407
1416
|
save_ret = await db_module.save_app_couch_doc(ref, doc);
|
|
1417
|
+
misc_module.rsync_drive_resources_to_remote_servers("studio", app_id);
|
|
1408
1418
|
break;
|
|
1409
1419
|
}
|
|
1410
1420
|
case "workspace": {
|
|
@@ -1439,6 +1449,10 @@ exports.upload_drive_file = async function (req, job_id, headers, file_obj) {
|
|
|
1439
1449
|
await _common.get_project_app_id(req.app_id),
|
|
1440
1450
|
doc
|
|
1441
1451
|
);
|
|
1452
|
+
misc_module.rsync_drive_resources_to_remote_servers(
|
|
1453
|
+
"workspace",
|
|
1454
|
+
app_id
|
|
1455
|
+
);
|
|
1442
1456
|
break;
|
|
1443
1457
|
}
|
|
1444
1458
|
case "user": {
|
|
@@ -1461,6 +1475,7 @@ exports.upload_drive_file = async function (req, job_id, headers, file_obj) {
|
|
|
1461
1475
|
};
|
|
1462
1476
|
doc._id = file_name;
|
|
1463
1477
|
save_ret = await db_module.save_couch_doc("xuda_drive", doc);
|
|
1478
|
+
misc_module.rsync_drive_resources_to_remote_servers("user", uid);
|
|
1464
1479
|
break;
|
|
1465
1480
|
}
|
|
1466
1481
|
|