@azteam/express 1.2.269 → 1.2.270

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/package.json +1 -1
  2. package/src/Server.js +3 -3
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@azteam/express",
3
- "version": "1.2.269",
3
+ "version": "1.2.270",
4
4
  "main": "src/index.js",
5
5
  "engines": {
6
6
  "node": ">= 12.0.0",
package/src/Server.js CHANGED
@@ -211,9 +211,9 @@ class Server {
211
211
  const responseAllows = allow;
212
212
  if (_.isArray(guard)) {
213
213
  responseGuard = [...guard, '__v', '_id', 'deleted_at', 'updated_at', 'created_id', 'modified_id', 'resource'];
214
- if (resType === RES_TYPE.ARRAY || resType === RES_TYPE.DOCS) {
215
- responseGuard = [...guard, 'metadata_disable', 'metadata_keywords', 'metadata_description', 'metadata_image_url'];
216
- }
214
+ // if (resType === RES_TYPE.ARRAY || resType === RES_TYPE.DOCS) {
215
+ // responseGuard = [...responseGuard, 'metadata_disable', 'metadata_keywords', 'metadata_description', 'metadata_image_url'];
216
+ // }
217
217
  }
218
218
  if (resType === RES_TYPE.DOCS) {
219
219
  guardData.docs = _.map(data.docs, (item) => {