@xuda.io/drive_module 1.1.1210 → 1.1.1212
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 +3 -2
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -1111,7 +1111,7 @@ exports.upload_drive_file = async function (req, job_id, headers, file_obj) {
|
|
|
1111
1111
|
type: 'file',
|
|
1112
1112
|
};
|
|
1113
1113
|
const check_existing_file_ret = await module.exports.check_drive_file(check_req);
|
|
1114
|
-
|
|
1114
|
+
debugger;
|
|
1115
1115
|
if (check_existing_file_ret.code < 0) {
|
|
1116
1116
|
const rename_file_name = async function (i) {
|
|
1117
1117
|
if (i > 1000) {
|
|
@@ -1142,7 +1142,8 @@ exports.upload_drive_file = async function (req, job_id, headers, file_obj) {
|
|
|
1142
1142
|
case 'studio': {
|
|
1143
1143
|
ref = await _common.get_project_app_id(req.app_id, true);
|
|
1144
1144
|
const target_dir = path.join(_conf[`studio_drive_path`], ref);
|
|
1145
|
-
file_name = path.join(req.path, file_obj.originalname);
|
|
1145
|
+
// file_name = path.join(req.path, file_obj.originalname);
|
|
1146
|
+
file_name = path.join(req.path, doc.originalname);
|
|
1146
1147
|
|
|
1147
1148
|
target_file = path.join(target_dir, file_name);
|
|
1148
1149
|
|