@xuda.io/drive_module 1.1.630 → 1.1.631
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 +12 -12
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -1537,18 +1537,18 @@ exports.upload_drive_file = async function (req, job_id, headers, file_obj) {
|
|
|
1537
1537
|
break;
|
|
1538
1538
|
}
|
|
1539
1539
|
case "user": {
|
|
1540
|
-
/// check existing file
|
|
1541
|
-
const user_drive_res = await db_module.find_couch_query("xuda_drive", {
|
|
1542
|
-
|
|
1543
|
-
|
|
1544
|
-
});
|
|
1545
|
-
if (user_drive_res.docs.length) {
|
|
1546
|
-
|
|
1547
|
-
|
|
1548
|
-
|
|
1549
|
-
|
|
1550
|
-
|
|
1551
|
-
}
|
|
1540
|
+
// /// check existing file
|
|
1541
|
+
// const user_drive_res = await db_module.find_couch_query("xuda_drive", {
|
|
1542
|
+
// selector: { docType: "user_drive", originalname, uid, stat: 3 },
|
|
1543
|
+
// limit: 99,
|
|
1544
|
+
// });
|
|
1545
|
+
// if (user_drive_res.docs.length) {
|
|
1546
|
+
// return {
|
|
1547
|
+
// code: -762,
|
|
1548
|
+
// data: "file already exist",
|
|
1549
|
+
// duplicates: user_drive_res.docs,
|
|
1550
|
+
// };
|
|
1551
|
+
// }
|
|
1552
1552
|
|
|
1553
1553
|
ref = uid;
|
|
1554
1554
|
file_name =
|