@xuda.io/drive_module 1.1.651 → 1.1.653

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.
Files changed (2) hide show
  1. package/index.js +2 -2
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -2311,7 +2311,7 @@ const get_folder_docs = async function (dir, drive_type, app_id) {
2311
2311
 
2312
2312
  exports.update_drive_file_tags = async function (req) {
2313
2313
  try {
2314
- const { drive_type, uid, app_id, file_name_id } = req;
2314
+ const { drive_type, app_id, file_name_id, tags = [] } = req;
2315
2315
  validate_drive_type(drive_type);
2316
2316
 
2317
2317
  let doc_ret;
@@ -2371,7 +2371,7 @@ exports.update_drive_file_tags = async function (req) {
2371
2371
  if (doc_ret.code > -1) {
2372
2372
  var doc = doc_ret.data;
2373
2373
  doc.date_modified = Date.now();
2374
- doc.originalname = file_name_to;
2374
+ doc.tags = tags;
2375
2375
  let save_ret;
2376
2376
 
2377
2377
  switch (drive_type) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/drive_module",
3
- "version": "1.1.651",
3
+ "version": "1.1.653",
4
4
  "description": "Xuda Drive Server Module",
5
5
  "main": "index.js",
6
6
  "dependencies": {