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) {