Skip to content

Commit

Permalink
chore: rename finished to completed
Browse files Browse the repository at this point in the history
  • Loading branch information
daithihearn committed Jan 29, 2024
1 parent 5f53893 commit 6f5cd23
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 6f5cd23

Please sign in to comment.