File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ import 'dart:io';
33import 'package:dart_frog/dart_frog.dart' ;
44import 'package:ht_api/src/rbac/permission_service.dart' ;
55import 'package:ht_api/src/registry/model_registry.dart' ;
6+ import 'package:ht_api/src/services/dashboard_summary_service.dart' ;
67import 'package:ht_api/src/services/user_preference_limit_service.dart' ; // Import UserPreferenceLimitService
78import 'package:ht_data_repository/ht_data_repository.dart' ;
89import 'package:ht_shared/ht_shared.dart' ;
@@ -123,11 +124,8 @@ Future<Response> _handleGet(
123124 userId: userIdForRepoCall,
124125 ); // userId should be null for AppConfig
125126 case 'dashboard_summary' :
126- final repo = context.read <HtDataRepository <DashboardSummary >>();
127- item = await repo.read (
128- id: id,
129- userId: userIdForRepoCall,
130- );
127+ final service = context.read <DashboardSummaryService >();
128+ item = await service.getSummary ();
131129 default :
132130 // This case should ideally be caught by middleware, but added for safety
133131 // Throw an exception to be caught by the errorHandler
You can’t perform that action at this time.
0 commit comments