Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
shahriar
instagram-service
Commits
aa220521
Commit
aa220521
authored
Nov 27, 2021
by
shahriar
☹
Browse files
Update lottery.controller.ts
parent
22966c47
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/lottery/lottery.controller.ts
View file @
aa220521
...
...
@@ -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
})
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment