@xuda.io/drive_module 1.1.524 → 1.1.526

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.js +5 -1
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -123,6 +123,7 @@ exports.get_drive_files = async function (req) {
123
123
  is_archive: doc.is_archive,
124
124
  public: doc.public,
125
125
  path: "/" + doc._id,
126
+ date_created: doc.date_created,
126
127
  });
127
128
  } catch (err) {
128
129
  console.error(err.message);
@@ -143,6 +144,7 @@ exports.get_drive_files = async function (req) {
143
144
  path: "/" + doc._id,
144
145
  type: doc.type,
145
146
  is_folder: true,
147
+ date_created: doc.date_created,
146
148
  });
147
149
  } catch (err) {
148
150
  console.error(err.message);
@@ -197,6 +199,7 @@ exports.get_drive_files = async function (req) {
197
199
  is_archive: doc.is_archive,
198
200
  public: doc.public,
199
201
  path: "/" + doc._id,
202
+ date_created: doc.date_created,
200
203
  });
201
204
  } catch (err) {
202
205
  console.error(err.message);
@@ -216,6 +219,7 @@ exports.get_drive_files = async function (req) {
216
219
  size: formatBytes(sizeInBytes),
217
220
  name: doc.folder_name,
218
221
  path: "/" + doc._id,
222
+ date_created: doc.date_created,
219
223
  });
220
224
  } catch (err) {
221
225
  console.error(err.message);
@@ -234,7 +238,7 @@ exports.get_drive_files = async function (req) {
234
238
  : path.join(_conf.studio_drive_path, app_id_master);
235
239
 
236
240
  const options = {
237
- stat: false,
241
+ stat: true,
238
242
 
239
243
  symbolicLinks: false,
240
244
  size: true,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/drive_module",
3
- "version": "1.1.524",
3
+ "version": "1.1.526",
4
4
  "description": "Xuda Drive Server Module",
5
5
  "main": "index.js",
6
6
  "dependencies": {