Interest separare

This commit is contained in:
CHIEFSOFT\ameye
2024-10-04 21:14:29 -04:00
parent 179b7d9fb9
commit 4fd5bb83aa
2 changed files with 29 additions and 18 deletions
+4 -1
View File
@@ -100,7 +100,9 @@ CREATE TABLE email_message(
try {
out["total_record"] = "0";
const PGresult *res;
res = pgsql_query("SELECT * FROM email_message WHERE topic ='JOBS_INDIVIDUAL_OFFER_MAIL' AND status = 1 ORDER BY id ASC LIMIT 20");
res = pgsql_query("SELECT * FROM email_message "
" WHERE topic IN ('JOBS_INDIVIDUAL_OFFER_MAIL', 'JOBS_OFFER_INTEREST_MAIL') "
" AND status = 1 ORDER BY id ASC LIMIT 20");
if (res != NULL && pgsql_num_rows(res) > 0) {
out["total_record"] = pgsql_num_rows(res);
@@ -122,6 +124,7 @@ CREATE TABLE email_message(
}
return 0;
}