diff --git a/dao/database_impl.go b/dao/database_impl.go index 678c77f..693e943 100644 --- a/dao/database_impl.go +++ b/dao/database_impl.go @@ -18,9 +18,7 @@ func (database *GormDatabase) GetAllFlights() *[]models.Flight { func (database *GormDatabase) CreateNewFlight(flight *models.Flight) *models.Flight { flight.Id = uuid.New() - database.Gorm.Create(flight) - return flight }