From fed49366a5b6ebec29e5c7a6378f30740effb0ce Mon Sep 17 00:00:00 2001 From: "CHIEFSOFT\\ameye" Date: Mon, 23 Sep 2024 06:40:55 -0400 Subject: [PATCH] AND payment_id IS NOT NULL --- wrenchboard/src/shared_tool/site_crons.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/wrenchboard/src/shared_tool/site_crons.cc b/wrenchboard/src/shared_tool/site_crons.cc index a3cd910d..67eb9ed8 100644 --- a/wrenchboard/src/shared_tool/site_crons.cc +++ b/wrenchboard/src/shared_tool/site_crons.cc @@ -165,6 +165,7 @@ long ProcessExpiredOffers(CVars in, CVars &out){ " WHERE expire< now() " " AND status = 1 " " AND refund_auto IS NULL " + " AND payment_id IS NOT NULL " " ORDER BY id ASC LIMIT 10"); if (res != NULL && pgsql_num_rows(res) > 0) {