WrenchMemberMarketMessages

This commit is contained in:
CHIEFSOFT\ameye
2023-12-04 11:38:48 -05:00
parent b7f85a80c3
commit 586a3516a9
+2 -2
View File
@@ -314,7 +314,7 @@ long WrenchMemberMarketMessages(CVars in, CVars &out) {
long member_id = REQ_LONG(in, "member_id", 1, -1);
REQ_LONG(in, "page", 1, -1);
OPTIONAL(in, "recent") REQ_LONG(in, "recent", 1, -1);
REQ_STRING(in, "contract", 5, 25, "(.*)");
REQ_STRING(in, "offer_code", 5, 25, "(.*)");
// this section ;limit recent or not recent
if ( in["recent"].Long() == 1 ){
@@ -324,7 +324,7 @@ long WrenchMemberMarketMessages(CVars in, CVars &out) {
{snprintf(vname, sizeof (vname), " ");
}
snprintf(vname_memo, sizeof (vname_memo), " AND LOWER(TRIM(mm.memo)) = LOWER('%s') ",in["contract"].c_str() );
snprintf(vname_memo, sizeof (vname_memo), " AND LOWER(TRIM(mm.memo)) = LOWER('%s') ",in["offer_code"].c_str() );
out["total_record"] = "0";
const PGresult *res;