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
d7b987ff
Commit
d7b987ff
authored
Aug 01, 2021
by
velayat
Browse files
fix bugs and feedbacks
parent
251575ce
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/app.service.ts
View file @
d7b987ff
...
...
@@ -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
=
1
000
;
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
({
...
...
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