From de69c49d46dcced93cc34e8fdcd1d4c6d70e0fe2 Mon Sep 17 00:00:00 2001 From: yudejp Date: Sat, 2 Oct 2021 12:49:27 +0900 Subject: [PATCH] Delete garbage comment --- pages/api/Fitbit/Sleep.js | 8 -------- 1 file changed, 8 deletions(-) diff --git a/pages/api/Fitbit/Sleep.js b/pages/api/Fitbit/Sleep.js index 86c058e..394b252 100644 --- a/pages/api/Fitbit/Sleep.js +++ b/pages/api/Fitbit/Sleep.js @@ -26,14 +26,6 @@ const FitbitSleep = async (req, res) => { if (response.status === 204 || response.status > 400) { return res.status(200).send("404"); } - // const duration = data["sleep"].map((item, i) => { - // if (item.dateOfSleep = today) { - // return item.duration - // } else { - // return "Failed to retrieve data." - // } - // } - // ) const duration = data.summary.totalMinutesAsleep return res.status(200).json({ duration,