@xuda.io/drive_module 1.1.1248 → 1.1.1249
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 +2 -2
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -645,7 +645,7 @@ export const update_drive_file = async (req, job_id, headers, file_obj) => {
|
|
|
645
645
|
|
|
646
646
|
export const create_drive_folder = async (req, job_id, headers) => {
|
|
647
647
|
try {
|
|
648
|
-
const { drive_type, app_id, folder_name, uid, reserve } = req;
|
|
648
|
+
const { drive_type, app_id, folder_name, uid, reserve, path: file_path } = req;
|
|
649
649
|
validate_drive_type(drive_type);
|
|
650
650
|
|
|
651
651
|
let folder_id;
|
|
@@ -665,7 +665,7 @@ export const create_drive_folder = async (req, job_id, headers) => {
|
|
|
665
665
|
country: headers?.['cf-ipcountry'],
|
|
666
666
|
is_folder: true,
|
|
667
667
|
type: 'directory',
|
|
668
|
-
file_path
|
|
668
|
+
file_path,
|
|
669
669
|
reserve,
|
|
670
670
|
};
|
|
671
671
|
|