mirror of
https://github.com/yude-jp/yude.jp
synced 2025-01-03 01:50:11 +09:00
Delete garbage comment
This commit is contained in:
parent
1411e37d8f
commit
de69c49d46
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user