@xuda.io/drive_module 1.1.571 → 1.1.572
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 -4
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -1474,8 +1474,8 @@ exports.upload_drive_file = async function (req, job_id, headers, file_obj) {
|
|
|
1474
1474
|
}
|
|
1475
1475
|
case "user": {
|
|
1476
1476
|
/// check existing file
|
|
1477
|
-
const user_drive_res = await db_module.find_couch_query("
|
|
1478
|
-
selector: { docType: "user_drive", originalname, stat: 3 },
|
|
1477
|
+
const user_drive_res = await db_module.find_couch_query("xuda_drive", {
|
|
1478
|
+
selector: { docType: "user_drive", originalname, uid, stat: 3 },
|
|
1479
1479
|
limit: 99,
|
|
1480
1480
|
});
|
|
1481
1481
|
if (user_drive_res.docs.length) {
|
|
@@ -1576,8 +1576,8 @@ exports.check_drive_file = async function (req, job_id, headers, file_obj) {
|
|
|
1576
1576
|
break;
|
|
1577
1577
|
}
|
|
1578
1578
|
case "user": {
|
|
1579
|
-
const user_drive_res = await db_module.find_couch_query("
|
|
1580
|
-
selector: { docType: "user_drive", originalname, stat: 3 },
|
|
1579
|
+
const user_drive_res = await db_module.find_couch_query("xuda_drive", {
|
|
1580
|
+
selector: { docType: "user_drive", originalname, uid, stat: 3 },
|
|
1581
1581
|
limit: 99,
|
|
1582
1582
|
});
|
|
1583
1583
|
if (user_drive_res.docs.length) {
|