Skip to content

Commit 0d8ac30

Browse files
committed
fix(country): use Object instead of dynamic for empty list type
- Change type of 'matchingSources' and 'matchingHeadlines' from List<dynamic> to List<Object> in country query service - This modification improves type safety and eliminates potential type-related issues
1 parent b245795 commit 0d8ac30

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/src/services/country_query_service.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ class CountryQueryService {
174174
});
175175
pipeline.add({
176176
r'$match': {
177-
'matchingSources': {r'$ne': <dynamic>[]},
177+
'matchingSources': {r'$ne': <Object>[]},
178178
},
179179
});
180180
}
@@ -202,7 +202,7 @@ class CountryQueryService {
202202
});
203203
pipeline.add({
204204
r'$match': {
205-
'matchingHeadlines': {r'$ne': <dynamic>[]},
205+
'matchingHeadlines': {r'$ne': <Object>[]},
206206
},
207207
});
208208
}

0 commit comments

Comments
 (0)