@xuda.io/drive_module 1.1.1313 → 1.1.1315
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 +7 -1
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -816,6 +816,7 @@ export const rename_drive_file = async (req, job_id, headers) => {
|
|
|
816
816
|
|
|
817
817
|
export const rename_drive_folder = async (req) => {
|
|
818
818
|
try {
|
|
819
|
+
debugger;
|
|
819
820
|
const { drive_type, app_id, curr_path, new_path, uid } = req;
|
|
820
821
|
validate_drive_type(drive_type);
|
|
821
822
|
|
|
@@ -896,7 +897,12 @@ export const rename_drive_folder = async (req) => {
|
|
|
896
897
|
data: new_path,
|
|
897
898
|
};
|
|
898
899
|
} catch (err) {
|
|
899
|
-
return err.message;
|
|
900
|
+
// return err.message;
|
|
901
|
+
|
|
902
|
+
return {
|
|
903
|
+
code: -200,
|
|
904
|
+
data: err.message,
|
|
905
|
+
};
|
|
900
906
|
}
|
|
901
907
|
};
|
|
902
908
|
|