fix(habitica): Search for the right type too

Signed-off-by: Stuart McCulloch Anderson's avatarStuart McCulloch Anderson <>
parent 9dc73b56
......@@ -75,7 +75,7 @@ class Habitica extends Delivery
return ["Failed"];
$tasks = $this->_search($rewardJson['alias'], $rewardProfile['name'], '', false, true);
$tasks = $this->_search($rewardJson['alias'], $rewardProfile['name'], $rewardJson['type'], false, true);
if(is_null($tasks)) {
$tasks = $this->_create($rewardJson['type'], $rewardProfile['name'], $rewardJson);
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