@xuda.io/drive_module 1.1.573 → 1.1.575
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 -1
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -44,13 +44,13 @@ const fs = require("fs");
|
|
|
44
44
|
"check_drive_file",
|
|
45
45
|
].forEach((method) => {
|
|
46
46
|
["workspace", "studio", "user"].forEach((type) => {
|
|
47
|
-
req.drive_type = type;
|
|
48
47
|
module.exports[method + "_" + type] = async function (
|
|
49
48
|
req,
|
|
50
49
|
job_id,
|
|
51
50
|
headers,
|
|
52
51
|
file_obj
|
|
53
52
|
) {
|
|
53
|
+
req.drive_type = type;
|
|
54
54
|
return await module.exports[method](req, job_id, headers, file_obj);
|
|
55
55
|
};
|
|
56
56
|
});
|
|
@@ -1537,6 +1537,7 @@ exports.upload_drive_file = async function (req, job_id, headers, file_obj) {
|
|
|
1537
1537
|
}
|
|
1538
1538
|
};
|
|
1539
1539
|
exports.check_drive_file = async function (req, job_id, headers, file_obj) {
|
|
1540
|
+
debugger;
|
|
1540
1541
|
const { drive_type, app_id, uid, originalname } = req;
|
|
1541
1542
|
var file_name, ref;
|
|
1542
1543
|
|