members_jobs
This commit is contained in:
@@ -518,7 +518,7 @@ CREATE TABLE members_myfiles (
|
||||
*/
|
||||
|
||||
long WrenchGetRecentDash(CVars in, CVars &out) {
|
||||
|
||||
long WrenchJobCount(long member_id);
|
||||
|
||||
logfmt(logINFO, "WrenchGetRecentDash()");
|
||||
char vname[30];
|
||||
@@ -2187,12 +2187,12 @@ long LoginWrenchBoardQRAccount(CVars in, CVars &out) {
|
||||
logfmt(logINFO, "/LoginWrenchBoardQRAccount()");
|
||||
return ret;
|
||||
}
|
||||
long WrenchJobCount(long member_id);
|
||||
|
||||
|
||||
long WrenchJobCount(long member_id){
|
||||
CVars out;
|
||||
long active_job_count = 0 ;
|
||||
if ( load_db_record(out, "SELECT count(id) AS active_job_count FROM currency WHERE member_id=%lu AND status = 1",member_id)> 0 ){
|
||||
if ( load_db_record(out, "SELECT count(id) AS active_job_count FROM members_jobs WHERE member_id=%lu AND status = 1",member_id)> 0 ){
|
||||
active_job_count = out["active_job_count"].Long();
|
||||
}
|
||||
return active_job_count;
|
||||
|
||||
Reference in New Issue
Block a user