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 {
const comptitionArray = new Array<any>();
const foundUsernames = await this.resultModel
.find({})
.sort({ score: -1 });
let index = 1;
.sort({});
let index = 1000;
for await (const user of foundUsernames) {
console.log(index)
for (let u = 0; u < user.valid_users.length; u++) {
const isChanceExist = await this.lotoryResultModel
.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