@xuda.io/drive_module 1.1.569 → 1.1.571
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 +1 -3
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -41,6 +41,7 @@ const fs = require("fs");
|
|
|
41
41
|
"update_drive_file_sharing_mode",
|
|
42
42
|
"delete_file_bulk",
|
|
43
43
|
"search_drive_files",
|
|
44
|
+
"check_drive_file",
|
|
44
45
|
].forEach((method) => {
|
|
45
46
|
["workspace", "studio", "user"].forEach((type) => {
|
|
46
47
|
module.exports[method + "_" + type] = async function (
|
|
@@ -1560,8 +1561,6 @@ exports.check_drive_file = async function (req, job_id, headers, file_obj) {
|
|
|
1560
1561
|
case "workspace": {
|
|
1561
1562
|
ref = await _common.get_project_app_id(req.app_id, true);
|
|
1562
1563
|
|
|
1563
|
-
/// check existing file
|
|
1564
|
-
|
|
1565
1564
|
const workspace_drive_res = await db_module.find_app_couch_query(app_id, {
|
|
1566
1565
|
selector: { docType: "workspace_drive", originalname, stat: 3 },
|
|
1567
1566
|
limit: 99,
|
|
@@ -1577,7 +1576,6 @@ exports.check_drive_file = async function (req, job_id, headers, file_obj) {
|
|
|
1577
1576
|
break;
|
|
1578
1577
|
}
|
|
1579
1578
|
case "user": {
|
|
1580
|
-
/// check existing file
|
|
1581
1579
|
const user_drive_res = await db_module.find_couch_query("drive", {
|
|
1582
1580
|
selector: { docType: "user_drive", originalname, stat: 3 },
|
|
1583
1581
|
limit: 99,
|