Skip to content

Commit

Permalink
Merge pull request #438 from traPtitech/feat/attendee-after-event
Browse files Browse the repository at this point in the history
  • Loading branch information
Luftalian authored Jul 18, 2023
2 parents 22efa7c + 8613fa2 commit cb9fc32
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions usecase/production/event.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
package production

import (
"time"

"github.com/gofrs/uuid"
"github.com/traPtitech/knoQ/domain"
"github.com/traPtitech/knoQ/domain/filter"
Expand Down Expand Up @@ -135,10 +133,6 @@ func (repo *Repository) UpsertMeEventSchedule(eventID uuid.UUID, schedule domain
if !repo.IsGroupMember(info.ReqUserID, event.Group.ID, info) && !event.Open {
return domain.ErrForbidden
}
now := time.Now()
if event.TimeStart.Before(now) {
return domain.ErrTimeHasPassed
}

err = repo.GormRepo.UpsertEventSchedule(eventID, info.ReqUserID, schedule)
return defaultErrorHandling(err)
Expand Down

0 comments on commit cb9fc32

Please sign in to comment.