From eda5ada45bc320ba654010ba48891139b34f6d54 Mon Sep 17 00:00:00 2001 From: Daniel Berteaud Date: Tue, 14 Oct 2014 18:30:24 +0200 Subject: [PATCH] Fix invitations handling --- vroom.pl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vroom.pl b/vroom.pl index 61a34a7..a956cf8 100755 --- a/vroom.pl +++ b/vroom.pl @@ -1038,10 +1038,10 @@ get '/kicked/(:room)' => sub { get '/invitation' => sub { my $self = shift; my $inviteId = $self->param('token') || ''; - # Delecte expired invitation now + # Delete expired invitation now $self->delete_invitations; my $invite = $self->get_invitation($inviteId); - my $room = $self->get_room_by_id($invite->{id}); + my $room = $self->get_room_by_id($invite->{room_id}); if (!$invite || !$room){ return $self->render('error', err => 'ERROR_INVITATION_INVALID',