Always returning sleep streak, on all activities

This commit is contained in:
Maximilian Giller 2024-01-09 22:42:49 +01:00
parent a090b8f2aa
commit d9dad4ab91

View file

@ -65,9 +65,7 @@ if (!isset($_GET["secret"]) || $_GET["secret"] != $SECRET_KEY) {
respondAndDie($e->getMessage()); respondAndDie($e->getMessage());
} }
handleTemplate($activity); handleTemplate($activity);
if ($activity->title == "Sleeping") { $activity->streak = getStreakEntries("sleep");
$activity->streak = getStreakEntries("sleep");
}
respondWithJson($activity->getPublicData()); respondWithJson($activity->getPublicData());
} }