@xuda.io/drive_module 1.1.1326 → 1.1.1328
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
|
@@ -678,7 +678,7 @@ export const create_drive_folder = async (req, job_id, headers) => {
|
|
|
678
678
|
if (!_.isEmpty(tags)) {
|
|
679
679
|
if (typeof tags === 'string') {
|
|
680
680
|
tags_arr = tags.split(',');
|
|
681
|
-
} else {
|
|
681
|
+
} else if (_.isArray(tags)) {
|
|
682
682
|
tags_arr = tags;
|
|
683
683
|
}
|
|
684
684
|
}
|
|
@@ -1087,7 +1087,7 @@ export const upload_drive_file = async (req, job_id, headers, file_obj) => {
|
|
|
1087
1087
|
if (!_.isEmpty(tags)) {
|
|
1088
1088
|
if (typeof tags === 'string') {
|
|
1089
1089
|
tags_arr = tags.split(',');
|
|
1090
|
-
} else {
|
|
1090
|
+
} else if (_.isArray(tags)) {
|
|
1091
1091
|
tags_arr = tags;
|
|
1092
1092
|
}
|
|
1093
1093
|
}
|