diff --git a/storage/mongodb.go b/storage/mongodb.go index 9468ecf..f16e117 100644 --- a/storage/mongodb.go +++ b/storage/mongodb.go @@ -225,12 +225,12 @@ func (s MongoDBStorage) GetBookingsForDriver(driver string) (bookings []Booking, func (s MongoDBStorage) DeleteBooking(bookingid string) error { collection := s.Client.Database(s.DbName).Collection(s.Collections["bookings"]) - _, err := collection.UpdateOne( + _, err := collection.DeleteOne( context.TODO(), bson.M{"_id": bookingid}, - bson.D{ - {"$set", bson.D{{"deleted", true}}}, - }, + // bson.D{ + // {"$set", bson.D{{"deleted", true}}}, + // }, ) return err