members_jobs

This commit is contained in:
CHIEFSOFT\ameye
2023-11-11 06:34:30 -05:00
parent fa71337d3e
commit 0a18c32ef7
+3 -3
View File
@@ -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;