@xuda.io/drive_module 1.1.534 → 1.1.536
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 +13 -0
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -765,6 +765,10 @@ exports.create_drive_folder = async function (req, job_id, headers) {
|
|
|
765
765
|
await create_directory(target_dir, 0o775, true);
|
|
766
766
|
doc._id = folder_id;
|
|
767
767
|
save_ret = await db_module.save_app_couch_doc(app_id_master, doc);
|
|
768
|
+
misc_module.rsync_drive_resources_to_remote_servers(
|
|
769
|
+
"studio",
|
|
770
|
+
app_id_master
|
|
771
|
+
);
|
|
768
772
|
break;
|
|
769
773
|
}
|
|
770
774
|
|
|
@@ -887,6 +891,10 @@ exports.rename_drive_file = async function (req) {
|
|
|
887
891
|
doc_ret.data._id = file_name_to;
|
|
888
892
|
delete doc_ret.data._rev;
|
|
889
893
|
}
|
|
894
|
+
misc_module.rsync_drive_resources_to_remote_servers(
|
|
895
|
+
"studio",
|
|
896
|
+
app_id_master
|
|
897
|
+
);
|
|
890
898
|
break;
|
|
891
899
|
}
|
|
892
900
|
case "workspace": {
|
|
@@ -980,6 +988,11 @@ exports.rename_drive_folder = async function (req) {
|
|
|
980
988
|
|
|
981
989
|
doc_ret.data._id = file_name_to;
|
|
982
990
|
delete doc_ret.data._rev;
|
|
991
|
+
|
|
992
|
+
misc_module.rsync_drive_resources_to_remote_servers(
|
|
993
|
+
"studio",
|
|
994
|
+
app_id_reference
|
|
995
|
+
);
|
|
983
996
|
break;
|
|
984
997
|
}
|
|
985
998
|
case "workspace": {
|