Use real event data on vote page
This commit is contained in:
@ -134,7 +134,7 @@ func (s *Store) CreateEvent(ctx context.Context, cmd CreateEventCommand) (result
|
||||
}
|
||||
|
||||
type GetEventQuery struct {
|
||||
AlphaID, AdminCode string
|
||||
AlphaID string
|
||||
}
|
||||
|
||||
type GetEventResult struct {
|
||||
@ -174,6 +174,7 @@ func (s *Store) GetEvent(ctx context.Context, query GetEventQuery) (GetEventResu
|
||||
return GetEventResult{}, err
|
||||
}
|
||||
if !found {
|
||||
// TODO return a constant or a specific error type for Not Found
|
||||
return GetEventResult{}, errors.New("not found")
|
||||
}
|
||||
return result, nil
|
||||
|
Reference in New Issue
Block a user