@sera4/essentia 1.0.39 → 1.0.40

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/health/index.js CHANGED
@@ -130,16 +130,16 @@ class HealthCheck {
130
130
  ... payload,
131
131
  "healthy": false,
132
132
  "message": "fail",
133
- "services": [result]
133
+ "services": result
134
134
  });
135
- } else if (status === 200) {
136
- res.status(status).json(payload);
137
- } else if (nonCriticalFailure) {
135
+ } else if (nonCriticalFail) {
138
136
  res.status(status).json({
139
137
  ... payload,
140
138
  "message": "fail",
141
- "services": [result]
139
+ "services": result
142
140
  });
141
+ } else if (status === 200) {
142
+ res.status(status).json(payload);
143
143
  }
144
144
  } else {
145
145
  let status_message;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sera4/essentia",
3
- "version": "1.0.39",
3
+ "version": "1.0.40",
4
4
  "description": "A library of utilities for Teleporte Web Services",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/package.tar.gz CHANGED
Binary file