@xuda.io/drive_module 1.1.1000 → 1.1.1002
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 +2 -5
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -801,7 +801,6 @@ exports.delete_drive_files = async function (req, job_id, headers) {
|
|
|
801
801
|
};
|
|
802
802
|
}
|
|
803
803
|
|
|
804
|
-
let doc_ret;
|
|
805
804
|
for await (const file of files_arr) {
|
|
806
805
|
let doc = await get_drive_doc(
|
|
807
806
|
"file",
|
|
@@ -865,6 +864,7 @@ exports.delete_drive_files = async function (req, job_id, headers) {
|
|
|
865
864
|
|
|
866
865
|
switch (drive_type) {
|
|
867
866
|
case "workspace": {
|
|
867
|
+
const app_id_reference = await _common.get_project_app_id(app_id);
|
|
868
868
|
misc_module.rsync_drive_resources_to_remote_servers(
|
|
869
869
|
"workspace",
|
|
870
870
|
app_id_reference
|
|
@@ -872,10 +872,7 @@ exports.delete_drive_files = async function (req, job_id, headers) {
|
|
|
872
872
|
break;
|
|
873
873
|
}
|
|
874
874
|
case "user": {
|
|
875
|
-
misc_module.rsync_drive_resources_to_remote_servers(
|
|
876
|
-
"user",
|
|
877
|
-
doc_ret.data.uid
|
|
878
|
-
);
|
|
875
|
+
misc_module.rsync_drive_resources_to_remote_servers("user", uid);
|
|
879
876
|
break;
|
|
880
877
|
}
|
|
881
878
|
default:
|