diff --git a/app/models/work_authorization.rb b/app/models/work_authorization.rb index 520adc4a3..fef7b6fe5 100644 --- a/app/models/work_authorization.rb +++ b/app/models/work_authorization.rb @@ -54,7 +54,7 @@ def self.handle_signin_for!(user:, authorize_until: 1.day.from_now, work_pid: ni # # @see .revoke! # rubocop:disable Rails/FindBy - def self.authorize!(user:, work_pid:, expires_at: 1.day.from_now) + def self.authorize!(user:, work_pid:, expires_at: 1.days.from_now) work = ActiveFedora::Base.where(id: work_pid).first raise WorkNotFoundError.new(user: user, work_pid: work_pid) unless work