Skip to content

Commit

Permalink
set api as default for doi source. #578
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin Fenner committed Oct 11, 2020
1 parent 2ec9074 commit bdc4b07
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/models/doi.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2112,6 +2112,7 @@ def set_defaults
self.is_active = (aasm_state == "findable") ? "\x01" : "\x00"
self.version = version.present? ? version + 1 : 1
self.updated = Time.zone.now.utc.iso8601
self.source = "api" if source.blank?
end

def update_agency
Expand Down

0 comments on commit bdc4b07

Please sign in to comment.