badmfck-api-server 4.0.85 → 4.0.86

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.
@@ -103,7 +103,7 @@ class MicroserviceHost extends BaseService_1.BaseService {
103
103
  const request = JSON.parse(decrypted.toString("utf8"));
104
104
  const reqCall = this.options.requests.find(r => r.name === request?.requestName);
105
105
  if (!reqCall)
106
- return { ...DefaultErrors_1.default.BAD_REQUEST, details: "method not found" };
106
+ return { ...DefaultErrors_1.default.NOT_FOUND, details: "request not registered: " + request?.requestName };
107
107
  const job = {
108
108
  status: "processing",
109
109
  expires: Date.now() + 1000 * 60 * 5
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "badmfck-api-server",
3
- "version": "4.0.85",
3
+ "version": "4.0.86",
4
4
  "description": "Simple API http server based on express",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",