@xuda.io/drive_module 1.1.536 → 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 +6 -0
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -1414,6 +1414,7 @@ exports.upload_drive_file = async function (req, job_id, headers, file_obj) {
|
|
|
1414
1414
|
doc._id = file_name;
|
|
1415
1415
|
|
|
1416
1416
|
save_ret = await db_module.save_app_couch_doc(ref, doc);
|
|
1417
|
+
misc_module.rsync_drive_resources_to_remote_servers("studio", app_id);
|
|
1417
1418
|
break;
|
|
1418
1419
|
}
|
|
1419
1420
|
case "workspace": {
|
|
@@ -1448,6 +1449,10 @@ exports.upload_drive_file = async function (req, job_id, headers, file_obj) {
|
|
|
1448
1449
|
await _common.get_project_app_id(req.app_id),
|
|
1449
1450
|
doc
|
|
1450
1451
|
);
|
|
1452
|
+
misc_module.rsync_drive_resources_to_remote_servers(
|
|
1453
|
+
"workspace",
|
|
1454
|
+
app_id
|
|
1455
|
+
);
|
|
1451
1456
|
break;
|
|
1452
1457
|
}
|
|
1453
1458
|
case "user": {
|
|
@@ -1470,6 +1475,7 @@ exports.upload_drive_file = async function (req, job_id, headers, file_obj) {
|
|
|
1470
1475
|
};
|
|
1471
1476
|
doc._id = file_name;
|
|
1472
1477
|
save_ret = await db_module.save_couch_doc("xuda_drive", doc);
|
|
1478
|
+
misc_module.rsync_drive_resources_to_remote_servers("user", uid);
|
|
1473
1479
|
break;
|
|
1474
1480
|
}
|
|
1475
1481
|
|