@xuda.io/drive_module 1.1.494 → 1.1.495
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
|
@@ -1353,7 +1353,7 @@ exports.delete_file_bulk = async function (req) {
|
|
|
1353
1353
|
|
|
1354
1354
|
exports.upload_drive_file = async function (req, job_id, headers, file_obj) {
|
|
1355
1355
|
try {
|
|
1356
|
-
const { drive_type, app_id, uid } = req;
|
|
1356
|
+
const { drive_type, app_id, uid, make_public } = req;
|
|
1357
1357
|
|
|
1358
1358
|
/// validations
|
|
1359
1359
|
validate_drive_type(drive_type);
|
|
@@ -1400,6 +1400,7 @@ exports.upload_drive_file = async function (req, job_id, headers, file_obj) {
|
|
|
1400
1400
|
target_file,
|
|
1401
1401
|
file_path: req.path,
|
|
1402
1402
|
size: stat.isFile() ? stat.size : 0,
|
|
1403
|
+
public: make_public,
|
|
1403
1404
|
};
|
|
1404
1405
|
doc = { ...doc, ...(await get_file_info(tempPath)) };
|
|
1405
1406
|
|