@xuda.io/drive_module 1.1.696 → 1.1.698
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 +4 -3
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -2363,7 +2363,7 @@ exports.update_drive_file_tags = async function (req, job_id, headers) {
|
|
|
2363
2363
|
);
|
|
2364
2364
|
|
|
2365
2365
|
var target_file = path.join(file_path, file_name);
|
|
2366
|
-
const master_id = await _common.get_project_app_id(app_id, true);
|
|
2366
|
+
// const master_id = await _common.get_project_app_id(app_id, true);
|
|
2367
2367
|
|
|
2368
2368
|
let doc_ret;
|
|
2369
2369
|
|
|
@@ -2401,11 +2401,12 @@ exports.update_drive_file_tags = async function (req, job_id, headers) {
|
|
|
2401
2401
|
doc.date_modified = Date.now();
|
|
2402
2402
|
} else {
|
|
2403
2403
|
if (drive_type === "studio") {
|
|
2404
|
-
const ext = path.extname(
|
|
2404
|
+
const ext = path.extname(file_name).toLowerCase();
|
|
2405
2405
|
doc = {
|
|
2406
|
+
_id: target_file,
|
|
2406
2407
|
docType: `${drive_type}_drive`,
|
|
2407
2408
|
stat: 3,
|
|
2408
|
-
originalname:
|
|
2409
|
+
originalname: file_name,
|
|
2409
2410
|
uid,
|
|
2410
2411
|
type: "file",
|
|
2411
2412
|
date_created: Date.now(),
|