From cfc23deb6baf2b557cede4a922f372cb5d59ac80 Mon Sep 17 00:00:00 2001 From: martynas-sm <73378276+martynas-sm@users.noreply.github.com> Date: Sun, 12 May 2024 21:40:26 +0300 Subject: [PATCH] Fix mockserver solar data parsing (#6735) --- mockserver/server.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mockserver/server.js b/mockserver/server.js index a02bbc650f..dcb3ad9188 100644 --- a/mockserver/server.js +++ b/mockserver/server.js @@ -39,7 +39,7 @@ app.get('/v8/gfs/solar', (req, res, next) => { fs.readFile(`./public/v8/gfs/solar.json`, (err, data) => { const jsonData = JSON.parse(data); - jsonData.data.header.refTime = targetTime; + jsonData.data[0].header.refTime = targetTime; res.json(jsonData); });