@xuda.io/drive_module 1.1.834 → 1.1.836
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 +3 -3
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -868,7 +868,7 @@ exports.update_drive_file = async function (req, job_id, headers, file_obj) {
|
|
|
868
868
|
}
|
|
869
869
|
|
|
870
870
|
let doc = await get_drive_doc(
|
|
871
|
-
|
|
871
|
+
"file",
|
|
872
872
|
drive_type,
|
|
873
873
|
app_id,
|
|
874
874
|
uid,
|
|
@@ -1812,7 +1812,7 @@ exports.upload_drive_file = async function (req, job_id, headers, file_obj) {
|
|
|
1812
1812
|
}
|
|
1813
1813
|
};
|
|
1814
1814
|
exports.check_drive_file = async function (req, job_id, headers, file_obj) {
|
|
1815
|
-
const { drive_type, app_id, uid, file_path } = req;
|
|
1815
|
+
const { type, drive_type, app_id, uid, file_path } = req;
|
|
1816
1816
|
|
|
1817
1817
|
var master_app_id;
|
|
1818
1818
|
|
|
@@ -2544,7 +2544,7 @@ const get_folder_docs = async function (dir, drive_type, app_id) {
|
|
|
2544
2544
|
exports.update_drive_file_tags = async function (req, job_id, headers) {
|
|
2545
2545
|
try {
|
|
2546
2546
|
const { type, drive_type, app_id, uid, file_path, tags = [] } = req;
|
|
2547
|
-
const file_name = path.basename(file_path);
|
|
2547
|
+
// const file_name = path.basename(file_path);
|
|
2548
2548
|
validate_drive_type(drive_type);
|
|
2549
2549
|
|
|
2550
2550
|
let doc = await get_drive_doc(
|