@xuda.io/drive_module 1.1.843 → 1.1.845
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 -13
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -1478,12 +1478,7 @@ exports.check_drive_file = async function (req, job_id, headers, file_obj) {
|
|
|
1478
1478
|
const workspace_drive_res = await db_module.find_app_couch_query(
|
|
1479
1479
|
master_app_id,
|
|
1480
1480
|
{
|
|
1481
|
-
selector
|
|
1482
|
-
docType: "workspace_drive",
|
|
1483
|
-
originalname: path.basename(file_path),
|
|
1484
|
-
file_path: path.dirname(file_path),
|
|
1485
|
-
stat: 3,
|
|
1486
|
-
},
|
|
1481
|
+
selector,
|
|
1487
1482
|
limit: 99,
|
|
1488
1483
|
}
|
|
1489
1484
|
);
|
|
@@ -1498,14 +1493,9 @@ exports.check_drive_file = async function (req, job_id, headers, file_obj) {
|
|
|
1498
1493
|
break;
|
|
1499
1494
|
}
|
|
1500
1495
|
case "user": {
|
|
1496
|
+
selector.docType = "user_drive";
|
|
1501
1497
|
const user_drive_res = await db_module.find_couch_query("xuda_drive", {
|
|
1502
|
-
selector
|
|
1503
|
-
docType: "user_drive",
|
|
1504
|
-
originalname: path.basename(file_path),
|
|
1505
|
-
file_path: path.dirname(file_path),
|
|
1506
|
-
uid,
|
|
1507
|
-
stat: 3,
|
|
1508
|
-
},
|
|
1498
|
+
selector,
|
|
1509
1499
|
limit: 99,
|
|
1510
1500
|
});
|
|
1511
1501
|
if (user_drive_res.docs.length) {
|