Commit aa220521 authored by shahriar's avatar shahriar
Browse files

Update lottery.controller.ts

parent 22966c47
......@@ -26,7 +26,9 @@ export class LotteryController {
@ApiTags('Lottery/weekly')
@Get('weekly/get-lottory-result')
async getResultDb() {
return await this.lotteryService.getResultDb().sort(() => Math.random() - 0.5);
var res = await this.lotteryService.getResultDb();
return res.sort(() => Math.random() - 0.5)
}
@ApiBody({ type: ChangeStatusDto })
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment