@xuda.io/drive_module 1.1.657 → 1.1.659
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 -1
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -2370,6 +2370,7 @@ exports.update_drive_file_tags = async function (req) {
|
|
|
2370
2370
|
var doc = {};
|
|
2371
2371
|
if (doc_ret.code > -1) {
|
|
2372
2372
|
doc = doc_ret.data;
|
|
2373
|
+
doc.date_modified = Date.now();
|
|
2373
2374
|
} else {
|
|
2374
2375
|
if (drive_type === "studio") {
|
|
2375
2376
|
const ext = path.extname(file_name_id).toLowerCase();
|
|
@@ -2386,9 +2387,11 @@ exports.update_drive_file_tags = async function (req) {
|
|
|
2386
2387
|
is_archive: _conf.archive_drive_ext.includes(ext) ? true : false,
|
|
2387
2388
|
drive_type,
|
|
2388
2389
|
};
|
|
2390
|
+
} else {
|
|
2391
|
+
throw new Error("file not found");
|
|
2389
2392
|
}
|
|
2390
2393
|
}
|
|
2391
|
-
|
|
2394
|
+
|
|
2392
2395
|
doc.tags = tags;
|
|
2393
2396
|
let save_ret;
|
|
2394
2397
|
|