add return nil to compile

This commit is contained in:
soukainna 2023-02-22 14:57:22 +01:00
parent 74fe5f57e3
commit e55cf41e20
1 changed files with 3 additions and 0 deletions

View File

@ -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 {