Commit 38b34484 authored by velayat's avatar velayat
Browse files

change port and filter

parent c22fd7fd
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -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});
}
......
import { NestFactory } from '@nestjs/core';
1import { NestFactory } from '@nestjs/core';
import { AppModule } from './app.module';
async function bootstrap() {
......@@ -9,8 +9,8 @@ async function bootstrap() {
credentials: true,
})
await app.listen(4002).then(() => {
console.log(`server start on port 4002`);
await app.listen(4001).then(() => {
console.log(`server start on port 4001`);
})
}
......
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