diff --git a/backend/models/databases/supabase/user_usage.py b/backend/models/databases/supabase/user_usage.py index f88800ea5..b62aa1e0d 100644 --- a/backend/models/databases/supabase/user_usage.py +++ b/backend/models/databases/supabase/user_usage.py @@ -233,7 +233,7 @@ class UserUsage(Repository): """ Fetch the user request count from the database """ - date_30_days_ago = datetime.now() - timedelta(days=30) + date_30_days_ago = (datetime.now() - timedelta(days=30)).strftime("%Y%m%d") response = ( self.db.from_("user_daily_usage")