@xuda.io/drive_module 1.1.536 → 1.1.538

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 +6 -0
  2. package/package.json +2 -2
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
 
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@xuda.io/drive_module",
3
- "version": "1.1.536",
3
+ "version": "1.1.538",
4
4
  "description": "Xuda Drive Server Module",
5
5
  "main": "index.js",
6
6
  "dependencies": {
7
7
  "lodash": "^4.17.21",
8
8
  "rimraf": "^3.0.2",
9
- "fs-extra": "^9.0.1",
9
+ "fs-extra": "^11.2.0",
10
10
  "image-size": "^1.0.2",
11
11
  "unzipper": "^0.10.14",
12
12
  "node-tesseract-ocr": "^2.2.1",