@xuda.io/drive_module 1.1.1324 → 1.1.1326
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
|
@@ -675,7 +675,7 @@ export const create_drive_folder = async (req, job_id, headers) => {
|
|
|
675
675
|
let save_ret;
|
|
676
676
|
|
|
677
677
|
let tags_arr = [];
|
|
678
|
-
if (tags) {
|
|
678
|
+
if (!_.isEmpty(tags)) {
|
|
679
679
|
if (typeof tags === 'string') {
|
|
680
680
|
tags_arr = tags.split(',');
|
|
681
681
|
} else {
|
|
@@ -1084,7 +1084,7 @@ export const upload_drive_file = async (req, job_id, headers, file_obj) => {
|
|
|
1084
1084
|
|
|
1085
1085
|
let tags_arr = [];
|
|
1086
1086
|
try {
|
|
1087
|
-
if (tags) {
|
|
1087
|
+
if (!_.isEmpty(tags)) {
|
|
1088
1088
|
if (typeof tags === 'string') {
|
|
1089
1089
|
tags_arr = tags.split(',');
|
|
1090
1090
|
} else {
|