summaryrefslogtreecommitdiffstats
path: root/lib/App/Hiveminder/Command/Decline.pm
diff options
context:
space:
mode:
Diffstat (limited to 'lib/App/Hiveminder/Command/Decline.pm')
-rw-r--r--lib/App/Hiveminder/Command/Decline.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/App/Hiveminder/Command/Decline.pm b/lib/App/Hiveminder/Command/Decline.pm
index da34aac..7ed6e70 100644
--- a/lib/App/Hiveminder/Command/Decline.pm
+++ b/lib/App/Hiveminder/Command/Decline.pm
@@ -17,8 +17,8 @@ sub command {
return unless @_ > 0;
my $ret = '';
- for my $task ($hm->get_tasks(%{ parse_args @_ })) {
- my $updated_task = $hm->update_task($task, accepted => 0);
+ for my $task ($self->hm->get_tasks(%{ parse_args @_ })) {
+ my $updated_task = $self->hm->update_task($task, accepted => 0);
# we get a task hash with each field undef if it succeeds
if (!defined $updated_task->{id}) {
$ret .= "Declined " . display_tasks($task) . "\n";