Skip to content

Commit

Permalink
mongo is failing to compile
Browse files Browse the repository at this point in the history
  • Loading branch information
or-else committed Feb 9, 2022
1 parent 2a9510a commit a47bb3e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/db/mongodb/adapter.go
Original file line number Diff line number Diff line change
Expand Up @@ -1744,7 +1744,7 @@ func (a *adapter) SubscriptionGet(topic string, user t.Uid, keepDeleted bool) (*
if !keepDeleted {
filter["deletedat"] = b.M{"$exists": false}
}
err := a.db.Collection("subscriptions").FindOne(a.ctx, filter}).Decode(sub)
err := a.db.Collection("subscriptions").FindOne(a.ctx, filter).Decode(sub)
if err != nil {
if err == mdb.ErrNoDocuments {
return nil, nil
Expand Down

0 comments on commit a47bb3e

Please sign in to comment.