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
38b34484
Commit
38b34484
authored
Aug 14, 2021
by
velayat
Browse files
change port and filter
parent
c22fd7fd
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
package-lock.json
View file @
38b34484
This diff is collapsed.
Click to expand it.
src/lottery/lottery.service.ts
View file @
38b34484
...
...
@@ -80,7 +80,7 @@ export class LotteryService {
async
getResultDb
()
{
return
await
this
.
lotteryResultModel
.
find
().
populate
(
"
user_id
"
,{
"
username
"
:
1
},
"
User
"
).
sort
({
"
status
"
:
1
})
.
find
(
{
"
status
"
:
"
online
"
}
).
populate
(
"
user_id
"
,{
"
username
"
:
1
},
"
User
"
).
sort
({
"
status
"
:
1
})
.
select
({
username
:
1
,
index
:
1
,
status
:
1
});
}
...
...
src/main.ts
View file @
38b34484
import
{
NestFactory
}
from
'
@nestjs/core
'
;
1
import
{
NestFactory
}
from
'
@nestjs/core
'
;
import
{
AppModule
}
from
'
./app.module
'
;
async
function
bootstrap
()
{
...
...
@@ -9,8 +9,8 @@ async function bootstrap() {
credentials
:
true
,
})
await
app
.
listen
(
400
2
).
then
(()
=>
{
console
.
log
(
`server start on port 400
2
`
);
await
app
.
listen
(
400
1
).
then
(()
=>
{
console
.
log
(
`server start on port 400
1
`
);
})
}
...
...
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