assign jobs
This commit is contained in:
@@ -2487,6 +2487,7 @@ long LoginWrenchPromoAccount( CVars in, CVars &out ){
|
||||
CVars inx;
|
||||
CVars inj;
|
||||
|
||||
|
||||
try {
|
||||
REQ_STRING(in, "promo_owner", 2, 149, "(.*)");
|
||||
REQ_STRING(in, "promo", 2, 49, "(.*)");
|
||||
@@ -2550,8 +2551,41 @@ long LoginWrenchPromoAccount( CVars in, CVars &out ){
|
||||
ret = LoginWrenchBoardAccount(inx, out);
|
||||
logfmt(logINFO, "Auto Assign JOB LoginWrenchPromoAccount(CVars in, CVars &out)");
|
||||
|
||||
if ( load_db_record(inj, "SELECT j.member_id, j.uid AS job_uid, j.id AS job_id, j.title,j.description,j.country, m.uid FROM members_jobs j LEFT JOIN members m ON m.id = j.member_id WHERE j.uid::text ='c127e9f6-fbae-4566-8753-3eb5138a500e'")> 0){
|
||||
// LEt us assign first task
|
||||
// inj["member_id"] = "0"; inj["member_id"].set_valid( true );
|
||||
// inj["uid"] = "0"; inj["uid"].set_valid( true );
|
||||
// inj["job_id"] = "0"; inj["member_id"].set_valid( true );
|
||||
//inj["job_uid"] = "0"; inj["member_id"].set_valid( true );
|
||||
inj["email"] = inx["username"] ; inj["email"].set_valid( true ); // email
|
||||
inj["job_description"] = "0"; inj["job_description"].set_valid( true );
|
||||
inj["action"] = WRENCHBOARD_JOB_OFFER_SYSTEM; inj["action"].set_valid( true );
|
||||
inj["assign_mode"] = ASSIGN_MODE_EMAIL; inj["assign_mode"].set_valid( true );
|
||||
out["assign_id"] = WrenchJobOfferSystems(inj, out);
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
|
||||
|
||||
wrenchboard=> SELECT j.member_id, j.uid AS job_uid, j.id AS job_id, j.title,j.description,j.country, m.uid FROM members_jobs j LEFT JOIN members m ON m.id = j.member_id WHERE j.uid::text ='c127e9f6-fbae-4566-8753-3eb5138a500e';
|
||||
member_id | job_uid | job_id | title | description | country | uid
|
||||
-----------+--------------------------------------+--------+----------------------------------+-------------------------------------------------------------+---------+--------------------------------------
|
||||
474 | c127e9f6-fbae-4566-8753-3eb5138a500e | 677 | Log in on the Android or IOS app | The task if to see what the app look like on on your device | NG | c21d7d55-d24b-4cb0-a8e8-34362ef49d76
|
||||
(1 row)
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
wrenchboard=> select uid,id from members_jobs where member_id =474;
|
||||
uid | id
|
||||
--------------------------------------+-----
|
||||
c127e9f6-fbae-4566-8753-3eb5138a500e | 677
|
||||
2dfd4c90-52fc-4d71-8589-0bbfd6eebd8e | 678
|
||||
89593568-4615-451e-9868-6682d514e44b | 679
|
||||
c32a7b17-4353-4e5e-bd75-44a45a71191e | 680
|
||||
|
||||
$data = array(
|
||||
"member_id" => $member_id ,
|
||||
"sessionid" => $session_id ,
|
||||
@@ -2565,7 +2599,7 @@ long LoginWrenchPromoAccount( CVars in, CVars &out ){
|
||||
);
|
||||
*/
|
||||
|
||||
// out["assign_id"] = WrenchJobOfferSystems(inj, out);
|
||||
//
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user