@xuda.io/drive_module 1.1.999 → 1.1.1001

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.
Files changed (2) hide show
  1. package/index.js +13 -9
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -845,10 +845,6 @@ exports.delete_drive_files = async function (req, job_id, headers) {
845
845
  doc.stat = 4;
846
846
  save_ret = await save_drive_doc(drive_type, app_id, doc);
847
847
 
848
- misc_module.rsync_drive_resources_to_remote_servers(
849
- "workspace",
850
- app_id_reference
851
- );
852
848
  break;
853
849
  }
854
850
 
@@ -860,10 +856,6 @@ exports.delete_drive_files = async function (req, job_id, headers) {
860
856
  doc.stat = 4;
861
857
  save_ret = await save_drive_doc(drive_type, app_id, doc);
862
858
 
863
- misc_module.rsync_drive_resources_to_remote_servers(
864
- "user",
865
- doc_ret.data.uid
866
- );
867
859
  break;
868
860
  }
869
861
  default:
@@ -872,7 +864,19 @@ exports.delete_drive_files = async function (req, job_id, headers) {
872
864
  }
873
865
 
874
866
  switch (drive_type) {
875
- case "studio": {
867
+ case "workspace": {
868
+ const app_id_reference = await _common.get_project_app_id(app_id);
869
+ misc_module.rsync_drive_resources_to_remote_servers(
870
+ "workspace",
871
+ app_id_reference
872
+ );
873
+ break;
874
+ }
875
+ case "user": {
876
+ misc_module.rsync_drive_resources_to_remote_servers(
877
+ "user",
878
+ doc_ret.data.uid
879
+ );
876
880
  break;
877
881
  }
878
882
  default:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/drive_module",
3
- "version": "1.1.999",
3
+ "version": "1.1.1001",
4
4
  "description": "Xuda Drive Server Module",
5
5
  "main": "index.js",
6
6
  "dependencies": {