fix include
This commit is contained in:
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user