@xuda.io/drive_module 1.1.799 → 1.1.800

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 +0 -49
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -1107,55 +1107,6 @@ exports.rename_drive_file = async function (req, job_id, headers) {
1107
1107
  delete doc._rev;
1108
1108
  }
1109
1109
 
1110
- switch (drive_type) {
1111
- case "studio": {
1112
- const app_id_master = await _common.get_project_app_id(app_id, true);
1113
- doc_ret = await db_module.get_app_couch_doc(app_id_master, file_path);
1114
- await fs_module.rename(file_path, file_name_to);
1115
- if (doc_ret.code > -1) {
1116
- doc_ret.data._delete = true;
1117
- save_ret = await db_module.save_app_couch_doc(
1118
- app_id_master,
1119
- doc_ret.data
1120
- );
1121
-
1122
- doc_ret.data._id = file_name_to;
1123
- delete doc_ret.data._rev;
1124
- }
1125
- misc_module.rsync_drive_resources_to_remote_servers(
1126
- "studio",
1127
- app_id_master
1128
- );
1129
- break;
1130
- }
1131
- case "workspace": {
1132
- const app_id_reference = await _common.get_project_app_id(app_id);
1133
- doc_ret = await db_module.get_app_couch_doc(
1134
- app_id_reference,
1135
- check_existing_file_ret.duplicates[0]._id
1136
- );
1137
- if (doc_ret.code < 0) {
1138
- throw new Error(doc_ret.data);
1139
- }
1140
-
1141
- break;
1142
- }
1143
-
1144
- case "user":
1145
- doc_ret = await db_module.get_couch_doc(
1146
- "xuda_drive",
1147
- check_existing_file_ret.duplicates[0]._id
1148
- );
1149
- if (doc_ret.code < 0) {
1150
- throw new Error(doc_ret.data);
1151
- }
1152
-
1153
- break;
1154
-
1155
- default:
1156
- break;
1157
- }
1158
-
1159
1110
  if (doc_ret.code > -1) {
1160
1111
  var doc = doc_ret.data;
1161
1112
  doc.date_modified = Date.now();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/drive_module",
3
- "version": "1.1.799",
3
+ "version": "1.1.800",
4
4
  "description": "Xuda Drive Server Module",
5
5
  "main": "index.js",
6
6
  "dependencies": {