From 4bc757009f612363bfd48c50af35421323645e85 Mon Sep 17 00:00:00 2001 From: TShapinsky Date: Fri, 15 Dec 2023 12:03:32 -0700 Subject: [PATCH] fix tests --- alfalfa_web/server/api-v2.js | 2 +- poetry.lock | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/alfalfa_web/server/api-v2.js b/alfalfa_web/server/api-v2.js index 86fc0de6..aec45fa6 100644 --- a/alfalfa_web/server/api-v2.js +++ b/alfalfa_web/server/api-v2.js @@ -171,7 +171,7 @@ router.param("modelId", (req, res, next, id) => { id: "required|uuid" } ); - if (error) return res.status(400).json({ error }); + if (error) return res.status(400).json({ message: error }); api .getModelById(id) .then((model) => { diff --git a/poetry.lock b/poetry.lock index c2af84a7..05f9740f 100644 --- a/poetry.lock +++ b/poetry.lock @@ -17,7 +17,7 @@ requests-toolbelt = "~1.0" type = "git" url = "https://github.com/nrel/alfalfa-client.git" reference = "boptest_alignment" -resolved_reference = "8a865037ff8f1578e825efb32a99643ce1e9638b" +resolved_reference = "1cfc6e11f77b4c497f22ba2ce49f3ea2a42aa86a" [[package]] name = "anyio"