@xuda.io/drive_module 1.1.488 → 1.1.489
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 +0 -27
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -356,33 +356,6 @@ exports.get_drive_file_info = async function (req) {
|
|
|
356
356
|
try {
|
|
357
357
|
const { type, drive_type, app_id, file_name } = req;
|
|
358
358
|
var { file_path } = req;
|
|
359
|
-
// const app_id_master = await _common.get_project_app_id(app_id, true);
|
|
360
|
-
// if (drive_type === "workspace") {
|
|
361
|
-
// if (!file_path.includes(app_id)) {
|
|
362
|
-
// return {
|
|
363
|
-
// code: -400,
|
|
364
|
-
// data: "error - file_path unauthorized",
|
|
365
|
-
// };
|
|
366
|
-
// }
|
|
367
|
-
// }
|
|
368
|
-
|
|
369
|
-
// path.basename(file_obj.originalname)
|
|
370
|
-
|
|
371
|
-
// if (drive_type === "workspace") {
|
|
372
|
-
// file_path = path.join(_conf.workspace_drive_path, app_id_master, file_path);
|
|
373
|
-
// }
|
|
374
|
-
// var doc = {};
|
|
375
|
-
|
|
376
|
-
// var doc_id;
|
|
377
|
-
// if (drive_type === "studio") {
|
|
378
|
-
// const target_dir = path.join(_conf[`studio_drive_path`], app_id_master);
|
|
379
|
-
|
|
380
|
-
// doc_id = file_path.replace(target_dir, "");
|
|
381
|
-
// } else {
|
|
382
|
-
// doc_id = file_name;
|
|
383
|
-
// }
|
|
384
|
-
|
|
385
|
-
// const doc_ret = await db_module.get_app_couch_doc(app_id_reference, doc_id);
|
|
386
359
|
|
|
387
360
|
let doc_ret,
|
|
388
361
|
doc_id,
|