From e55cf41e203bb7a0b2276f6b5584d3d308b5fe4d Mon Sep 17 00:00:00 2001 From: soukainna Date: Wed, 22 Feb 2023 14:57:22 +0100 Subject: [PATCH] add return nil to compile --- storage/mongodb.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/storage/mongodb.go b/storage/mongodb.go index f17414c..89b3c02 100644 --- a/storage/mongodb.go +++ b/storage/mongodb.go @@ -141,6 +141,9 @@ func (s MongoDBStorage) UpdateSubscription(eventid string, subscriber string, de return er } } + return nil +} + func (s MongoDBStorage) UpdateEvent(event Event) error { collection := s.Client.Database(s.DbName).Collection(s.Collections["events"]) if _, err := collection.ReplaceOne(context.TODO(), bson.M{"_id": event.ID}, event); err != nil {