summaryrefslogtreecommitdiff
path: root/lib/Travelynx
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2019-04-19 15:56:54 -0400
committerDaniel Friesel <derf@finalrewind.org>2019-04-19 15:56:54 -0400
commit24d0943cdc3f50ac1063b6fb8308ce21d940c67d (patch)
tree3c6144f13dad9e848f5a8c1dfb0f8dbedaa0b976 /lib/Travelynx
parentf7db1c6a2642238b440aba39ee7e9133dfd1e901 (diff)
refactor set_status_query and get_token_query
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' );
}