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
627ed44d
Commit
627ed44d
authored
Jul 26, 2021
by
soheib
Browse files
add something
parent
f503cf6d
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/app.service.ts
View file @
627ed44d
...
...
@@ -405,7 +405,7 @@ export class AppService implements OnApplicationBootstrap {
totalMentions
+=
valid_mentions
+
invalid_mentions
+
pending_mentions
console
.
log
(
"
eachMention :
"
,
valid_mentions
+
invalid_mentions
+
pending_mentions
);
await
this
.
delay
(
_
.
random
(
500
,
1000
))
let
foundUser
=
await
this
.
requestModel
.
findOne
({
username
:
username
})
if
(
!
foundUser
)
{
await
this
.
resultModel
.
create
({
...
...
@@ -413,16 +413,17 @@ export class AppService implements OnApplicationBootstrap {
valid_mentions
,
invalid_mentions
,
pending_mentions
,
score
:
valid_mentions
+
1
score
:
valid_mentions
+
1
,
valid_users
,
inValid_users
,
pending_users
})
}
else
{
await
this
.
resultModel
.
updateOne
(
foundUser
.
_id
,
{
username
:
username
,
valid_mentions
,
invalid_mentions
,
pending_mentions
,
score
:
valid_mentions
+
1
score
:
valid_mentions
+
1
,
valid_users
,
inValid_users
,
pending_users
})
}
}
...
...
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