@xuda.io/drive_module 1.1.1320 → 1.1.1322

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.
Files changed (2) hide show
  1. package/index.mjs +7 -1
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -1074,7 +1074,13 @@ export const upload_drive_file = async (req, job_id, headers, file_obj) => {
1074
1074
 
1075
1075
  let tags_arr = [];
1076
1076
  try {
1077
- if (tags) tags_arr = tags.split(',');
1077
+ if (tags) {
1078
+ if (typeof tags === 'string') {
1079
+ tags_arr = tags.split(',');
1080
+ } else {
1081
+ tags_arr = tags;
1082
+ }
1083
+ }
1078
1084
  } catch (error) {}
1079
1085
  const ts = Date.now();
1080
1086
  let doc = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/drive_module",
3
- "version": "1.1.1320",
3
+ "version": "1.1.1322",
4
4
  "description": "Xuda Drive Server Module",
5
5
  "main": "index.mjs",
6
6
  "dependencies": {