Please help,
My app has recently broken since my cocoapods has updated FireBase
I am getting the error: Cannot convert value of type 'DataEventType.Type' to expected argument type 'DataEventType'
on line 3
func fetchVenue(){
dbRef.observe(DataEventType, with: { (snapshot:DataSnapshot) in
var newPlaces = [Venue]()
for venue in snapshot.children.allObjects{
let venueObject = Venue(snapshot: venue as! FIRDataSnapshot)
newPlaces.append(venueObject)
}
self.places = newPlaces
self.tableView.reloadData()
})
}Please help