@xuda.io/drive_module 1.1.1441 → 1.1.1443
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.mjs +3 -2
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -685,6 +685,7 @@ export const delete_drive_files = async (req, job_id, headers) => {
|
|
|
685
685
|
|
|
686
686
|
export const update_drive_file = async (req, job_id, headers, file_obj) => {
|
|
687
687
|
try {
|
|
688
|
+
debugger;
|
|
688
689
|
const { drive_type, app_id, file_path, uid } = req;
|
|
689
690
|
validate_drive_type(drive_type);
|
|
690
691
|
|
|
@@ -1186,7 +1187,7 @@ export const delete_file_bulk = async (req) => {
|
|
|
1186
1187
|
export const upload_drive_file = async (req, job_id, headers = {}, file_obj) => {
|
|
1187
1188
|
try {
|
|
1188
1189
|
const { drive_type, app_id, uid, make_public, tags = '', is_system, path: file_path } = req;
|
|
1189
|
-
|
|
1190
|
+
|
|
1190
1191
|
/// validations
|
|
1191
1192
|
validate_drive_type(drive_type);
|
|
1192
1193
|
if (!file_obj?.['originalname']) {
|
|
@@ -1878,7 +1879,7 @@ const get_drive_doc = async (type, drive_type, app_id, uid, file_path, headers)
|
|
|
1878
1879
|
};
|
|
1879
1880
|
const check_existing_file_ret = await check_drive_file(check_req);
|
|
1880
1881
|
|
|
1881
|
-
if (!check_existing_file_ret?.duplicates) {
|
|
1882
|
+
if (!check_existing_file_ret?.duplicates && drive_type !== 'studio') {
|
|
1882
1883
|
throw new Error(`${file_path} document not found`);
|
|
1883
1884
|
}
|
|
1884
1885
|
|