-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Labels
Description
api/src/services/event_service.go
Line 61 in 583fe04
| func (service *EventService) Patch(user *types.User, input *types.CreateEvent, event *types.Event) (bool, error) { |
The
Patch method currently requires the user of the method to fetch the proper event object. However, I think it would be much better to have the method take an id parameter and change the event parameter to output. This way we can use the id parameter to fetch the event and then the updated value can be "returned" using output.
func (service *EventService) Patch(id string, user *types.User, input *types.CreateEvent, output *types.Event) (bool, error)