@xuda.io/drive_module 1.1.1019 → 1.1.1021
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.js +2 -1
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -220,7 +220,7 @@ exports.get_drive_files = async function (req) {
|
|
|
220
220
|
path: doc.file_path,
|
|
221
221
|
date_created: doc.date_created,
|
|
222
222
|
file_path: path.join(doc.file_path, doc.originalname),
|
|
223
|
-
tags: doc.tags,
|
|
223
|
+
tags: doc.tags || [],
|
|
224
224
|
});
|
|
225
225
|
} catch (err) {
|
|
226
226
|
console.error(err.message);
|
|
@@ -244,6 +244,7 @@ exports.get_drive_files = async function (req) {
|
|
|
244
244
|
type: doc.type,
|
|
245
245
|
is_folder: true,
|
|
246
246
|
date_created: doc.date_created,
|
|
247
|
+
tags: doc.tags || [],
|
|
247
248
|
});
|
|
248
249
|
} catch (err) {
|
|
249
250
|
console.error(err.message);
|