fix include

This commit is contained in:
CHIEFSOFT\ameye
2024-11-19 06:15:38 -05:00
parent 41b827d1ef
commit ade858cf8d
+2 -1
View File
@@ -13,6 +13,7 @@
#include "pgsql.h"
#include "pgsql_wrapper.h"
#include "cfg.h"
#include "jobs.h"
#include <curl/curl.h>
long WrenchMarketImport(CVars in, CVars &out);
@@ -108,7 +109,7 @@ long WrenchPromoAssignTask( CVars in, CVars &out )
return ret;
}
if ( load_db_record(p, "SELECT count(id) AS offer_count FROM members_jobs_offer WHERE client_id = %lu ", member_id)> 0){
if ( load_db_record(p, "SELECT count(id) AS offer_count FROM members_jobs_offer WHERE client_id = %lu AND status IN (1,2) ", member_id)> 0){
if (p["offer_count"].Long() > 0){
out["status"] = "OK";
out["task_result"] = "There is offer in place already";