Skip to content

Commit a2d2eb7

Browse files
author
Agnes Lin
committed
test: update snapshot
1 parent 9791350 commit a2d2eb7

File tree

1 file changed

+11
-5
lines changed

1 file changed

+11
-5
lines changed

packages/cli/snapshots/integration/generators/controller.integration.snapshots.js

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -122,8 +122,11 @@ export class ProductReviewController {
122122
},
123123
},
124124
})
125-
async findById(@param.path.number('id') id: number): Promise<ProductReview> {
126-
return this.barRepository.findById(id);
125+
async findById(
126+
@param.path.number('id') id: number,
127+
@param.query.object('filter', getFilterSchemaFor(ProductReview)) filter?: Filter<ProductReview>
128+
): Promise<ProductReview> {
129+
return this.barRepository.findById(id, filter);
127130
}
128131
129132
@patch('/product-reviews/{id}', {
@@ -219,7 +222,7 @@ export class ProductReviewController {
219222
'application/json': {
220223
schema: getModelSchemaRef(ProductReview, {
221224
title: 'NewProductReview',
222-
225+
223226
}),
224227
},
225228
},
@@ -291,8 +294,11 @@ export class ProductReviewController {
291294
},
292295
},
293296
})
294-
async findById(@param.path.number('id') id: number): Promise<ProductReview> {
295-
return this.barRepository.findById(id);
297+
async findById(
298+
@param.path.number('id') id: number,
299+
@param.query.object('filter', getFilterSchemaFor(ProductReview)) filter?: Filter<ProductReview>
300+
): Promise<ProductReview> {
301+
return this.barRepository.findById(id, filter);
296302
}
297303
298304
@patch('/product-reviews/{id}', {

0 commit comments

Comments
 (0)