fix(habitica): Award when goal or above met

Signed-off-by: Stuart McCulloch Anderson's avatarStuart McCulloch Anderson <stuart@nxfifteen.me.uk>
parent ae28ed4c
......@@ -45,7 +45,7 @@ class RecordedWater extends Modules
$db_prefix = $this->getAppClass()->getSetting("db_prefix", null, false);
$water = $this->getAppClass()->getDatabase()->get($db_prefix . "water", "liquid", ["AND" => ["user" => $this->getUserID(), "date" => $yesterday]]);
if ($water > $goal) {
if ($water >= $goal) {
$this->checkDB("meals", "water", "drank", $rewardKey . "Bang On");
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment