@xuda.io/drive_module 1.1.547 → 1.1.548
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 -3
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -1333,7 +1333,7 @@ exports.delete_file_bulk = async function (req) {
|
|
|
1333
1333
|
|
|
1334
1334
|
exports.upload_drive_file = async function (req, job_id, headers, file_obj) {
|
|
1335
1335
|
try {
|
|
1336
|
-
const { drive_type, app_id, uid, make_public,
|
|
1336
|
+
const { drive_type, app_id, uid, make_public, check_exist } = req;
|
|
1337
1337
|
|
|
1338
1338
|
/// validations
|
|
1339
1339
|
validate_drive_type(drive_type);
|
|
@@ -1433,12 +1433,12 @@ exports.upload_drive_file = async function (req, job_id, headers, file_obj) {
|
|
|
1433
1433
|
doc.app_id_reference = ref;
|
|
1434
1434
|
|
|
1435
1435
|
/// check existing file
|
|
1436
|
-
if (!
|
|
1436
|
+
if (!check_exist) {
|
|
1437
1437
|
const workspace_drive_res = await db_module.find_app_couch_query(
|
|
1438
1438
|
app_id,
|
|
1439
1439
|
{
|
|
1440
1440
|
selector: { docType: "workspace_drive", originalname, stat: 3 },
|
|
1441
|
-
limit:
|
|
1441
|
+
limit: 99,
|
|
1442
1442
|
}
|
|
1443
1443
|
);
|
|
1444
1444
|
}
|