@@ -714,24 +714,29 @@ pub async fn get_extended_org_usage_by_id_query(
714714 } ) ?;
715715
716716 let ocr_pages = ocr_pages_result. map_err ( |e| {
717- ServiceError :: InternalServerError ( format ! ( "Error fetching ingestion data {:?}" , e) )
717+ ServiceError :: InternalServerError ( format ! ( "Error fetching ocr pages {:?}" , e) )
718718 } ) ?;
719719
720720 let website_pages_scraped = website_pages_scraped_result. map_err ( |e| {
721- ServiceError :: InternalServerError ( format ! ( "Error fetching ingestion data {:?}" , e) )
721+ ServiceError :: InternalServerError ( format ! ( "Error fetching pages scraped {:?}" , e) )
722722 } ) ?;
723723
724724 let rag_events = rag_events_result. map_err ( |e| {
725- ServiceError :: InternalServerError ( format ! ( "Error fetching ingestion data {:?}" , e) )
725+ ServiceError :: InternalServerError ( format ! ( "Error fetching rag_events {:?}" , e) )
726726 } ) ?;
727727
728728 let search_events = search_events_result. map_err ( |e| {
729- ServiceError :: InternalServerError ( format ! ( "Error fetching ingestion data {:?}" , e) )
729+ ServiceError :: InternalServerError ( format ! ( "Error fetching search events {:?}" , e) )
730730 } ) ?;
731731
732- let current_months_message_count = current_months_message_count_result. map_err ( |e| {
733- ServiceError :: InternalServerError ( format ! ( "Error fetching ingestion data {:?}" , e) )
734- } ) ?;
732+ let current_months_message_count = current_months_message_count_result
733+ . map_err ( |e| {
734+ ServiceError :: InternalServerError ( format ! (
735+ "Error fetching months message count {:?}" ,
736+ e
737+ ) )
738+ } )
739+ . unwrap_or ( CurrentMonthMessageCountRow { query_count : 0 } ) ;
735740
736741 if let Some ( timer) = timer {
737742 timer. add ( "fetched all clickhouse data in parallel" ) ;
0 commit comments