Skip to content

Commit

Permalink
"Added debug print statements to ReviewUpdateforOldUsers function"
Browse files Browse the repository at this point in the history
  • Loading branch information
p-shubh committed Oct 21, 2024
1 parent 2b010d0 commit f4500f1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions api/v1/leaderboard/cron.job.operation.go
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,8 @@ func ReviewUpdateforOldUsers() {
var voters []string
db.Model(&models.Review{}).Select("voter").Find(&voters)

fmt.Printf("%+v\n", voters)

if len(voters) > 0 {

for _, v := range voters {
Expand All @@ -103,6 +105,7 @@ func ReviewUpdateforOldUsers() {
} else {
if len(userIds) > 0 {
for _, id := range userIds {
fmt.Println("Wallet Users id = ", id)
DynamicLeaderBoardUpdate(id, "reviews")
}
}
Expand Down

0 comments on commit f4500f1

Please sign in to comment.