@xuda.io/drive_module 1.1.528 → 1.1.530
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 +10 -8
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -469,14 +469,6 @@ exports.delete_drive_files = async function (req) {
|
|
|
469
469
|
data: "error - files_arr must be Array",
|
|
470
470
|
};
|
|
471
471
|
}
|
|
472
|
-
// if (drive_type === "workspace" && type === "file") {
|
|
473
|
-
// const app_id_reference = await _common.get_project_app_id(app_id);
|
|
474
|
-
// req.files_arr.forEach(function (file) {
|
|
475
|
-
// if (!file.path.includes(app_id_reference)) {
|
|
476
|
-
// throw new Error("error - file path unauthorized");
|
|
477
|
-
// }
|
|
478
|
-
// });
|
|
479
|
-
// }
|
|
480
472
|
|
|
481
473
|
let doc_ret;
|
|
482
474
|
for await (const file of files_arr) {
|
|
@@ -508,6 +500,11 @@ exports.delete_drive_files = async function (req) {
|
|
|
508
500
|
doc_ret.data
|
|
509
501
|
);
|
|
510
502
|
}
|
|
503
|
+
const misc_module = require(`${module_path}/misc_module`);
|
|
504
|
+
misc_module.rsync_drive_resources_to_remote_servers(
|
|
505
|
+
"studio",
|
|
506
|
+
app_id_master
|
|
507
|
+
);
|
|
511
508
|
break;
|
|
512
509
|
}
|
|
513
510
|
|
|
@@ -545,6 +542,11 @@ exports.delete_drive_files = async function (req) {
|
|
|
545
542
|
doc_ret.data
|
|
546
543
|
);
|
|
547
544
|
|
|
545
|
+
const misc_module = require(`${module_path}/misc_module`);
|
|
546
|
+
misc_module.rsync_drive_resources_to_remote_servers(
|
|
547
|
+
"workspace",
|
|
548
|
+
app_id_reference
|
|
549
|
+
);
|
|
548
550
|
break;
|
|
549
551
|
}
|
|
550
552
|
|