@xuda.io/drive_module 1.1.1219 → 1.1.1221
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 -2
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -626,7 +626,7 @@ exports.update_drive_file = async function (req, job_id, headers, file_obj) {
|
|
|
626
626
|
const app_id_reference = await _common.get_project_app_id(app_id);
|
|
627
627
|
const app_id_master = await _common.get_project_app_id(app_id, true);
|
|
628
628
|
ref = app_id_master;
|
|
629
|
-
|
|
629
|
+
file_name = doc.server_file_name;
|
|
630
630
|
const { data: app_obj } = await db_module.get_app_obj(app_id);
|
|
631
631
|
if (app_obj?.app_type === 'datacenter') {
|
|
632
632
|
const host = `root@${app_obj.app_hosting_server.ip}`;
|
|
@@ -1052,7 +1052,6 @@ exports.delete_file_bulk = async function (req) {
|
|
|
1052
1052
|
};
|
|
1053
1053
|
|
|
1054
1054
|
exports.upload_drive_file = async function (req, job_id, headers, file_obj) {
|
|
1055
|
-
debugger;
|
|
1056
1055
|
try {
|
|
1057
1056
|
const { drive_type, app_id, uid, make_public, tags = '' } = req;
|
|
1058
1057
|
|
|
@@ -1193,6 +1192,7 @@ exports.upload_drive_file = async function (req, job_id, headers, file_obj) {
|
|
|
1193
1192
|
break;
|
|
1194
1193
|
}
|
|
1195
1194
|
case 'workspace': {
|
|
1195
|
+
debugger;
|
|
1196
1196
|
ref = await _common.get_project_app_id(req.app_id, true);
|
|
1197
1197
|
file_name = 'drv_' + ref + '_' + (await _common.xuda_get_uuid(drive_type)) + ext;
|
|
1198
1198
|
|