Skip to content

Commit

Permalink
Merge pull request #25 from daithihearn/refactor-finished
Browse files Browse the repository at this point in the history
chore: rename finished to completed
  • Loading branch information
daithihearn authored Jan 29, 2024
2 parents 5f53893 + 6f5cd23 commit 77662cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/stats/stats-service.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ func (s *Service) GetStats(ctx context.Context, playerID string) ([]PlayerStats,
}

pipeline := mongo.Pipeline{
{{Key: "$match", Value: bson.D{{Key: "status", Value: "FINISHED"}, {Key: "players._id", Value: playerID}}}},
{{Key: "$match", Value: bson.D{{Key: "status", Value: "COMPLETED"}, {Key: "players._id", Value: playerID}}}},
{{Key: "$unwind", Value: "$players"}},
{{Key: "$match", Value: bson.D{{Key: "players._id", Value: playerID}}}},
{{Key: "$project", Value: bson.D{
Expand Down

0 comments on commit 77662cd

Please sign in to comment.