summaryrefslogtreecommitdiff
path: root/lib/Travelynx
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Travelynx')
-rw-r--r--lib/Travelynx/Controller/Account.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Travelynx/Controller/Account.pm b/lib/Travelynx/Controller/Account.pm
index 9e8c1fb..8626dc8 100644
--- a/lib/Travelynx/Controller/Account.pm
+++ b/lib/Travelynx/Controller/Account.pm
@@ -171,7 +171,7 @@ sub verify {
$self->render( 'register', invalid => 'token' );
return;
}
- $self->app->set_status_query->execute( 1, $id );
+ $self->app->pg->db->update( 'users', { status => 1 }, { id => $id } );
$self->render( 'login', from => 'verification' );
}