@xuda.io/drive_module 1.1.696 → 1.1.697
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
|
@@ -2401,11 +2401,11 @@ 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
2406
|
docType: `${drive_type}_drive`,
|
|
2407
2407
|
stat: 3,
|
|
2408
|
-
originalname:
|
|
2408
|
+
originalname: file_name,
|
|
2409
2409
|
uid,
|
|
2410
2410
|
type: "file",
|
|
2411
2411
|
date_created: Date.now(),
|