Commit d7b987ff authored by velayat's avatar velayat
Browse files

fix bugs and feedbacks

parent 251575ce
...@@ -556,9 +556,10 @@ export class AppService implements OnApplicationBootstrap { ...@@ -556,9 +556,10 @@ export class AppService implements OnApplicationBootstrap {
const comptitionArray = new Array<any>(); const comptitionArray = new Array<any>();
const foundUsernames = await this.resultModel const foundUsernames = await this.resultModel
.find({}) .find({})
.sort({ score: -1 }); .sort({});
let index = 1; let index = 1000;
for await (const user of foundUsernames) { for await (const user of foundUsernames) {
console.log(index)
for (let u = 0; u < user.valid_users.length; u++) { for (let u = 0; u < user.valid_users.length; u++) {
const isChanceExist = await this.lotoryResultModel const isChanceExist = await this.lotoryResultModel
.findOne({ .findOne({
......
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