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
89c12e64
Commit
89c12e64
authored
Aug 28, 2021
by
soheib
Browse files
update tag score calculate
parent
1243dcd5
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/lottery/score.service.ts
View file @
89c12e64
...
@@ -102,7 +102,7 @@ export class ScoreService {
...
@@ -102,7 +102,7 @@ export class ScoreService {
let
addToStoryScore
=
0
let
addToStoryScore
=
0
let
foundUserInStory
=
await
this
.
storyMentionModel
.
findOne
({
user_id
:
new
Types
.
ObjectId
(
user_id
)
})
let
foundUserInStory
=
await
this
.
storyMentionModel
.
findOne
({
user_id
:
new
Types
.
ObjectId
(
user_id
)
})
if
(
foundUserInStory
)
{
if
(
foundUserInStory
)
{
addToStoryScore
=
foundUserInStory
.
count
addToStoryScore
=
(
foundUserInStory
.
count
*
2
)
}
}
return
addToStoryScore
return
addToStoryScore
}
}
...
...
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