@xuda.io/drive_module 1.1.614 → 1.1.615
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 +7 -5
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -1418,11 +1418,13 @@ exports.upload_drive_file = async function (req, job_id, headers, file_obj) {
|
|
|
1418
1418
|
};
|
|
1419
1419
|
doc = { ...doc, ...(await get_file_info(tempPath)) };
|
|
1420
1420
|
|
|
1421
|
-
const
|
|
1422
|
-
|
|
1423
|
-
|
|
1424
|
-
|
|
1425
|
-
|
|
1421
|
+
const check_res = await module.exports.check_drive_file({
|
|
1422
|
+
file_name: doc.originalname,
|
|
1423
|
+
file_path: doc.file_path,
|
|
1424
|
+
});
|
|
1425
|
+
if (check_res.code < 0) {
|
|
1426
|
+
return check_res;
|
|
1427
|
+
}
|
|
1426
1428
|
|
|
1427
1429
|
switch (drive_type) {
|
|
1428
1430
|
case "studio": {
|