Skip to content

Commit 39eea59

Browse files
committed
style: misc
1 parent 0a978b1 commit 39eea59

File tree

3 files changed

+16
-14
lines changed

3 files changed

+16
-14
lines changed

lib/src/registry/data_operation_registry.dart

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -144,11 +144,11 @@ class DataOperationRegistry {
144144
}
145145
// Fallback to standard readAll if no special filters are present.
146146
return c.read<DataRepository<Country>>().readAll(
147-
userId: uid,
148-
filter: f,
149-
sort: s,
150-
pagination: p,
151-
);
147+
userId: uid,
148+
filter: f,
149+
sort: s,
150+
pagination: p,
151+
);
152152
},
153153
'language': (c, uid, f, s, p) => c
154154
.read<DataRepository<Language>>()

lib/src/services/country_query_service.dart

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -138,10 +138,12 @@ class CountryQueryService {
138138
'pipeline': [
139139
{
140140
r'$match': {
141-
r'$expr': {r'$eq': [r'$headquarters._id', r'$$countryId']},
141+
r'$expr': {
142+
r'$eq': [r'$headquarters._id', r'$$countryId'],
143+
},
142144
'status': ContentStatus.active.name,
143-
}
144-
}
145+
},
146+
},
145147
],
146148
'as': 'matchingSources',
147149
},
@@ -164,10 +166,12 @@ class CountryQueryService {
164166
'pipeline': [
165167
{
166168
r'$match': {
167-
r'$expr': {r'$eq': [r'$eventCountry._id', r'$$countryId']},
169+
r'$expr': {
170+
r'$eq': [r'$eventCountry._id', r'$$countryId'],
171+
},
168172
'status': ContentStatus.active.name,
169-
}
170-
}
173+
},
174+
},
171175
],
172176
'as': 'matchingHeadlines',
173177
},

routes/_middleware.dart

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -153,9 +153,7 @@ Handler middleware(Handler handler) {
153153
)
154154
.use(provider<RateLimitService>((_) => deps.rateLimitService))
155155
.use(
156-
provider<CountryQueryService>(
157-
(_) => deps.countryQueryService,
158-
),
156+
provider<CountryQueryService>((_) => deps.countryQueryService),
159157
)
160158
.call(context);
161159
};

0 commit comments

Comments
 (0)