$me->{db}->add($db_args);
if (defined $me->{cfg}->{queues}) {
foreach my $funcname (@{$me->{cfg}->{queues}}) {
- $me->{queue}->enqueue($funcname, {fb_post_id => $post_id, command => 'add', cfg => $me->{cfg}});
+ $me->{queue}->enqueue($funcname, {fb_post_id => $post_id, command => 'add'});
}
}
$resp_msg = $args->{who} . ': うい '.$me->{fb}->post_uri($post_id).' で登録';
$me->{db}->commit;
if (defined $me->{cfg}->{queues}) {
foreach my $funcname (@{$me->{cfg}->{queues}}) {
- $me->{queue}->enqueue($funcname, {command => 'remove', cfg => $me->{cfg}, fb_post_id => $post_id});
+ $me->{queue}->enqueue($funcname, {command => 'remove', fb_post_id => $post_id});
}
}
$resp_msg = $args->{who} . ': 削除しました ' . $me->{fb}->post_uri($post_id);