@xuda.io/drive_module 1.1.1051 → 1.1.1053
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 -9
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -281,7 +281,7 @@ exports.get_drive_files = async function (req) {
|
|
|
281
281
|
app_id_reference,
|
|
282
282
|
null,
|
|
283
283
|
app_obj.app_datacenter_id,
|
|
284
|
-
app_obj.is_deployment ? app_access_url : null
|
|
284
|
+
app_obj.is_deployment ? app_obj.app_access_url : null
|
|
285
285
|
),
|
|
286
286
|
};
|
|
287
287
|
};
|
|
@@ -1251,15 +1251,8 @@ exports.upload_drive_file = async function (req, job_id, headers, file_obj) {
|
|
|
1251
1251
|
ref = await _common.get_project_app_id(req.app_id, true);
|
|
1252
1252
|
const target_dir = path.join(_conf[`studio_drive_path`], ref);
|
|
1253
1253
|
file_name = path.join(req.path, file_obj.originalname);
|
|
1254
|
-
|
|
1255
|
-
// req.path.replace(target_dir, ""),
|
|
1256
|
-
// file_obj.originalname
|
|
1257
|
-
// );
|
|
1254
|
+
|
|
1258
1255
|
target_file = path.join(target_dir, file_name);
|
|
1259
|
-
// target_file = path.join(
|
|
1260
|
-
// req.path !== "/" ? req.path : target_dir,
|
|
1261
|
-
// originalname
|
|
1262
|
-
// );
|
|
1263
1256
|
|
|
1264
1257
|
if (!(await fs_module.file_exists(target_dir))) {
|
|
1265
1258
|
await fs_module.mkdir(target_dir, 0o775, true);
|