diff --git a/services/openclaw_strategist_service.py b/services/openclaw_strategist_service.py index 30a9f50..cc1adc9 100644 --- a/services/openclaw_strategist_service.py +++ b/services/openclaw_strategist_service.py @@ -350,7 +350,7 @@ def _send_data_stale_alert(report_type: str, last_date: str, period: str) -> boo WHERE insight_type = 'data_stale_alert' AND created_by = 'openclaw' AND created_at >= NOW() - INTERVAL '24 hours' - AND metadata_json->>'report_type' = :rt + AND metadata_json::jsonb->>'report_type' = :rt ORDER BY created_at DESC LIMIT 1 """), {"rt": report_type}).fetchone()