Skip to content

Commit

Permalink
chore: remove expiration date validation
Browse files Browse the repository at this point in the history
  • Loading branch information
rahmatrhd committed May 21, 2024
1 parent 1007721 commit afa76a9
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions core/grant/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -261,10 +261,6 @@ func (s *Service) Restore(ctx context.Context, id string) (*domain.Grant, error)
return nil, fmt.Errorf("getting grant details: %w", err)
}

if grant.ExpirationDate.Unix() > time.Now().Unix() {
return nil, fmt.Errorf("grant is already expired at: %s", grant.ExpirationDate)
}

grant.Status = domain.GrantStatusActive
grant.StatusInProvider = domain.GrantStatusActive
grant.RestoredAt = time.Now() //TBC
Expand Down

0 comments on commit afa76a9

Please sign in to comment.