implement freelancer alias deletion

This commit is contained in:
Tina_Azure
2023-05-19 18:10:31 +02:00
parent d83b427857
commit bfddfd5271
6 changed files with 83 additions and 0 deletions

View File

@ -462,6 +462,18 @@ namespace Database {
work.commit();
return result;
}
/*
* Executes the prepared statement DELETE_FREELANCER_ALIAS
* Deletes the entry for a reset key based on a freelancer email and the alias name
* Takes an open pqxx::connection and the freelancers email
*/
void executePreparedStatement_DELETE_FREELANCER_ALIAS(pqxx::connection &connection, const std::string& aliasName, const std::string& freelancerEmail) {
pqxx::work work(connection);
work.exec_prepared(PREPARED_STATEMENT_DELETE_FREELANCER_ALIAS, aliasName, freelancerEmail);
work.commit();
}
/*
* Executes the prepared statement UPDATE_LOGIN_VALIDATION_KEY
* Takes an open pqxx::connection, the freelancerID and the loginKey to update the entry