Skip to content

Commit

Permalink
return ads without article info during mongo has issue (#19)
Browse files Browse the repository at this point in the history
  • Loading branch information
shunj-nb authored May 15, 2023
1 parent c34a7fa commit 3cbf9a9
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions msp/db/mongo.go
Original file line number Diff line number Diff line change
Expand Up @@ -83,9 +83,5 @@ func (mongoDataStore *MongoDataStore) FindOne(ctx context.Context, collection st
opt.SetProjection(optMap)
}
err := mongoDataStore.db.Collection(collection).FindOne(ctx, filter, &opt).Decode(result)
if err == mongo.ErrNoDocuments {
} else if err != nil {
glog.Fatal(err)
}
return err == nil
}

0 comments on commit 3cbf9a9

Please sign in to comment.