implement freelancer alias base management page

and minor fixes
This commit is contained in:
Tina_Azure
2023-05-19 18:06:14 +02:00
parent 1620967c45
commit d83b427857
7 changed files with 93 additions and 6 deletions

View File

@ -452,6 +452,16 @@ namespace Database {
return result;
}
/*
* Executes the prepared statement SELECT_FREELANCER_ALIAS
* Takes an open pqxx::connection and the freelancer email to select by
*/
pqxx::result executePreparedStatement_SELECT_FREELANCER_ALIAS(pqxx::connection &connection, const std::string& freelancerEmail) {
pqxx::work work(connection);
pqxx::result result = work.exec_prepared(PREPARED_STATEMENT_SELECT_FREELANCER_ALIAS, freelancerEmail);
work.commit();
return result;
}
/*
* Executes the prepared statement UPDATE_LOGIN_VALIDATION_KEY
* Takes an open pqxx::connection, the freelancerID and the loginKey to update the entry