From 3cbf9a9852c8c50d0f6916c6a46356cbef5c3997 Mon Sep 17 00:00:00 2001 From: shunj-nb <75647253+shunj-nb@users.noreply.github.com> Date: Mon, 15 May 2023 16:45:11 -0700 Subject: [PATCH] return ads without article info during mongo has issue (#19) --- msp/db/mongo.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/msp/db/mongo.go b/msp/db/mongo.go index 84d110d48c4..29abe7e77eb 100644 --- a/msp/db/mongo.go +++ b/msp/db/mongo.go @@ -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 }