File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -164,7 +164,7 @@ export function defineCrudRestController<
164164 @param . filter ( modelCtor )
165165 filter ?: Filter < T > ,
166166 ) : Promise < ( T & Relations ) [ ] > {
167- return this . repository . find ( filter ) ;
167+ return this . repository . find ( filter , options ) ;
168168 }
169169
170170 @get ( '/{id}' , {
@@ -190,7 +190,7 @@ export function defineCrudRestController<
190190 @param . where ( modelCtor )
191191 where ?: Where < T > ,
192192 ) : Promise < Count > {
193- return this . repository . count ( where ) ;
193+ return this . repository . count ( where , options ) ;
194194 }
195195 }
196196
@@ -234,6 +234,7 @@ export function defineCrudRestController<
234234 // with no explicit type-casts required
235235 data as DataObject < T > ,
236236 where ,
237+ options ,
237238 ) ;
238239 }
239240
You can’t perform that action at this time.
0 commit comments