@xuda.io/drive_module 1.1.831 → 1.1.832

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 +11 -2
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -2592,11 +2592,18 @@ const get_folder_docs = async function (dir, drive_type, app_id) {
2592
2592
 
2593
2593
  exports.update_drive_file_tags = async function (req, job_id, headers) {
2594
2594
  try {
2595
- const { drive_type, app_id, uid, file_path, tags = [] } = req;
2595
+ const { type, drive_type, app_id, uid, file_path, tags = [] } = req;
2596
2596
  const file_name = path.basename(file_path);
2597
2597
  validate_drive_type(drive_type);
2598
2598
 
2599
- let doc = await get_drive_doc(drive_type, app_id, uid, file_path, headers);
2599
+ let doc = await get_drive_doc(
2600
+ type,
2601
+ drive_type,
2602
+ app_id,
2603
+ uid,
2604
+ file_path,
2605
+ headers
2606
+ );
2600
2607
 
2601
2608
  doc.date_modified = Date.now();
2602
2609
  doc.tags = tags;
@@ -2634,10 +2641,12 @@ setTimeout(async function () {
2634
2641
  }, 2000);
2635
2642
 
2636
2643
  const get_drive_doc = async function (
2644
+ type,
2637
2645
  drive_type,
2638
2646
  app_id,
2639
2647
  uid,
2640
2648
  file_path,
2649
+
2641
2650
  headers
2642
2651
  ) {
2643
2652
  let check_req = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/drive_module",
3
- "version": "1.1.831",
3
+ "version": "1.1.832",
4
4
  "description": "Xuda Drive Server Module",
5
5
  "main": "index.js",
6
6
  "dependencies": {