@xuda.io/drive_module 1.1.759 → 1.1.760
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 +4 -3
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -2373,21 +2373,22 @@ const get_folder_docs = async function (dir, drive_type, app_id) {
|
|
|
2373
2373
|
|
|
2374
2374
|
exports.update_drive_file_tags = async function (req, job_id, headers) {
|
|
2375
2375
|
try {
|
|
2376
|
-
const { drive_type, app_id, uid, file_path,
|
|
2376
|
+
const { drive_type, app_id, uid, file_path, tags = [] } = req;
|
|
2377
|
+
const file_name = path.basename(file_path);
|
|
2377
2378
|
validate_drive_type(drive_type);
|
|
2378
2379
|
|
|
2379
2380
|
let check_req = {
|
|
2380
2381
|
app_id,
|
|
2381
2382
|
uid,
|
|
2382
2383
|
drive_type,
|
|
2383
|
-
|
|
2384
|
+
|
|
2384
2385
|
file_path,
|
|
2385
2386
|
};
|
|
2386
2387
|
const check_existing_file_ret = await module.exports.check_drive_file(
|
|
2387
2388
|
check_req
|
|
2388
2389
|
);
|
|
2389
2390
|
|
|
2390
|
-
var target_file =
|
|
2391
|
+
var target_file = file_name;
|
|
2391
2392
|
// const master_id = await _common.get_project_app_id(app_id, true);
|
|
2392
2393
|
|
|
2393
2394
|
let doc_ret;
|