From 71ffe808ef72fb55318e92c7955f33ed7d2b11f1 Mon Sep 17 00:00:00 2001 From: urnotsam Date: Wed, 6 Nov 2024 15:46:02 -0500 Subject: [PATCH 1/2] update package for monitor-client --- src/server.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/server.ts b/src/server.ts index 50784d3..06e7d80 100644 --- a/src/server.ts +++ b/src/server.ts @@ -33,7 +33,7 @@ import Logger = require("./class/logger"); const app = express(); const logDirectory = path.join(__dirname, "req-log"); -const clientModule = require.resolve("@shardus/monitor-client"); +const clientModule = require.resolve("@shardeum-foundation/monitor-client"); const clientDirectory = path.dirname(clientModule); const viewDirectory = path.join(clientDirectory + "/views"); const staticDirectory = path.resolve(clientDirectory + "/public"); From b699a13f22648e9451632147d18a492b01683753 Mon Sep 17 00:00:00 2001 From: urnotsam Date: Thu, 7 Nov 2024 11:36:10 -0500 Subject: [PATCH 2/2] remove message overwrite in field existense error so we know what field is actually missing --- src/middleware/field-existance.ts | 1 - 1 file changed, 1 deletion(-) diff --git a/src/middleware/field-existance.ts b/src/middleware/field-existance.ts index f9000e8..71d6610 100644 --- a/src/middleware/field-existance.ts +++ b/src/middleware/field-existance.ts @@ -8,7 +8,6 @@ const FieldExistance = }); if (missing) { let error = new Error(`${_field} is required`); - error.message = "400"; return next(error); } next();