mirror of
https://github.com/dadosfera/maestro.git
synced 2026-11-08 00:49:08 +00:00
FIX: Summary-rating returning default 0 values
This commit is contained in:
@@ -218,15 +218,18 @@ export class CatalogController {
|
||||
}
|
||||
|
||||
@Get('summary-rating/:id')
|
||||
async getSummaryRating(@Param() params, @Body() body) {
|
||||
async getSummaryRating() {
|
||||
console.log(`/catalog`, 'ON GET SUMMARY RATING ROUTE');
|
||||
const { id } = params;
|
||||
//const { id } = params;
|
||||
|
||||
const catalogService = new CatalogService();
|
||||
//const catalogService = new CatalogService();
|
||||
|
||||
const res = await catalogService.getSummaryRating(id, body);
|
||||
//const res = await catalogService.getSummaryRating(id, body);
|
||||
|
||||
return res;
|
||||
return {
|
||||
avg_rating: 0,
|
||||
rating_count: 0,
|
||||
};
|
||||
}
|
||||
|
||||
@Get('data-comment')
|
||||
|
||||
Reference in New Issue
Block a user