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';
3
3
import 'package:dart_frog/dart_frog.dart' ;
4
4
import 'package:ht_api/src/rbac/permission_service.dart' ;
5
5
import 'package:ht_api/src/registry/model_registry.dart' ;
6
+ import 'package:ht_api/src/services/dashboard_summary_service.dart' ;
6
7
import 'package:ht_api/src/services/user_preference_limit_service.dart' ; // Import UserPreferenceLimitService
7
8
import 'package:ht_data_repository/ht_data_repository.dart' ;
8
9
import 'package:ht_shared/ht_shared.dart' ;
@@ -123,11 +124,8 @@ Future<Response> _handleGet(
123
124
userId: userIdForRepoCall,
124
125
); // userId should be null for AppConfig
125
126
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 ();
131
129
default :
132
130
// This case should ideally be caught by middleware, but added for safety
133
131
// Throw an exception to be caught by the errorHandler
You can’t perform that action at this time.
0 commit comments