From 971b11425150eb9a033ea40938413d3ec6ab7bcc Mon Sep 17 00:00:00 2001 From: Daniel Berteaud Date: Sun, 19 Oct 2014 12:07:43 +0200 Subject: [PATCH] Rename processed_invitation --- vroom.pl | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/vroom.pl b/vroom.pl index f86eaf2..12b8595 100755 --- a/vroom.pl +++ b/vroom.pl @@ -698,15 +698,15 @@ helper respond_invitation => sub { }; # Mark a invitation response as processed -helper processed_invitation => sub { +helper mark_invitation_processed => sub { my $self = shift; - my ($id) = @_; + my ($token) = @_; my $sth = eval { $self->db->prepare('UPDATE `email_invitations` SET `processed`=\'1\' WHERE `token`=?'); - } || return undef; - $sth->execute($id) || return undef; + }; + $sth->execute($token); return 1; }; @@ -1245,7 +1245,7 @@ post '/*action' => [action => [qw/action admin\/action/]] => sub { $msg .= "\n" . $self->l('MESSAGE') . ":\n" . $invitations->{$invit}->{message} . "\n"; } $msg .= "\n"; - $self->processed_invitation($invitations->{$invit}->{token}); + $self->mark_invitation_processed($invitations->{$invit}->{token}); } return $self->render( json => {