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

change port and filter

parent c22fd7fd
This diff is collapsed.
...@@ -80,7 +80,7 @@ export class LotteryService { ...@@ -80,7 +80,7 @@ export class LotteryService {
async getResultDb() { async getResultDb() {
return await this.lotteryResultModel 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}); .select({ username: 1, index: 1 , status: 1});
} }
......
import { NestFactory } from '@nestjs/core'; 1import { NestFactory } from '@nestjs/core';
import { AppModule } from './app.module'; import { AppModule } from './app.module';
async function bootstrap() { async function bootstrap() {
...@@ -9,8 +9,8 @@ async function bootstrap() { ...@@ -9,8 +9,8 @@ async function bootstrap() {
credentials: true, credentials: true,
}) })
await app.listen(4002).then(() => { await app.listen(4001).then(() => {
console.log(`server start on port 4002`); 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