Always returning sleep streak, on all activities
This commit is contained in:
parent
a090b8f2aa
commit
d9dad4ab91
1 changed files with 1 additions and 3 deletions
|
@ -65,9 +65,7 @@ if (!isset($_GET["secret"]) || $_GET["secret"] != $SECRET_KEY) {
|
|||
respondAndDie($e->getMessage());
|
||||
}
|
||||
handleTemplate($activity);
|
||||
if ($activity->title == "Sleeping") {
|
||||
$activity->streak = getStreakEntries("sleep");
|
||||
}
|
||||
$activity->streak = getStreakEntries("sleep");
|
||||
respondWithJson($activity->getPublicData());
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue