update jobs

This commit is contained in:
CHIEFSOFT\ameye
2023-05-11 09:12:09 -04:00
parent 58abb54836
commit 07b5138f39
3 changed files with 6 additions and 3 deletions
+1 -2
View File
@@ -1241,10 +1241,9 @@ long WrenchEditJobs(CVars in, CVars &out) {
job_id = insert_db_record(DBS_VALID, "members_jobs", "members_jobs_id_seq", x);
if (job_id) {
if ( update_db_record(DBS_VALID, "members_jobs", x, job_id) ){
update_db_record(DBS_VALID, "members_jobs", x, job_id) );
load_db_record(out, "SELECT *,id AS job_id FROM members_jobs WHERE id = %lu ", job_id);
ret = PHP_CREATED_OK;
}
} else {
out["status"] = "Unable to create job";
}