@xuda.io/drive_module 1.1.612 → 1.1.614
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 +6 -3
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -1379,9 +1379,6 @@ exports.upload_drive_file = async function (req, job_id, headers, file_obj) {
|
|
|
1379
1379
|
const originalname = path.basename(file_obj.originalname);
|
|
1380
1380
|
const tempPath = file_obj.path;
|
|
1381
1381
|
|
|
1382
|
-
const { code: check_code, data: check_data } =
|
|
1383
|
-
await module.exports.check_drive_file({ file_name: originalname });
|
|
1384
|
-
|
|
1385
1382
|
if (
|
|
1386
1383
|
![..._conf.allowedExts_drive, ..._conf.archive_drive_ext].includes(ext)
|
|
1387
1384
|
) {
|
|
@@ -1421,6 +1418,12 @@ exports.upload_drive_file = async function (req, job_id, headers, file_obj) {
|
|
|
1421
1418
|
};
|
|
1422
1419
|
doc = { ...doc, ...(await get_file_info(tempPath)) };
|
|
1423
1420
|
|
|
1421
|
+
const { code: check_code, data: check_data } =
|
|
1422
|
+
await module.exports.check_drive_file({
|
|
1423
|
+
file_name: doc.originalname,
|
|
1424
|
+
file_path: doc.file_path,
|
|
1425
|
+
});
|
|
1426
|
+
|
|
1424
1427
|
switch (drive_type) {
|
|
1425
1428
|
case "studio": {
|
|
1426
1429
|
ref = await _common.get_project_app_id(req.app_id, true);
|