implement freelancer alias deletion
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user