From 220bc51cb354bee530270e5227efbbbbc77cefad Mon Sep 17 00:00:00 2001 From: Tyler Allen Date: Wed, 4 Feb 2026 20:34:02 -0500 Subject: [PATCH] fixed --- database/poll.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/database/poll.go b/database/poll.go index dd534d8..63bb12c 100644 --- a/database/poll.go +++ b/database/poll.go @@ -142,7 +142,7 @@ func GetClosedVotedPolls(ctx context.Context, userId string) ([]*Poll, error) { ctx, cancel := context.WithTimeout(ctx, 10*time.Second) defer cancel() - cursor, err := Client.Database(db).Collection("votes").Aggregate(ctx, mongo.Pipeline{ + cursor, err := Client.Database(db).Collection("voters").Aggregate(ctx, mongo.Pipeline{ {{ Key: "$match", Value: bson.D{ {Key: "userId", Value: userId},