Skip to content

Commit

Permalink
Minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
klakegg committed Nov 17, 2023
1 parent 63d2532 commit 334d962
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bin/process-notice-types
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ aliases = config.fetch('aliases', {}).to_h { |k,v| [k.to_s, v.to_s] }
REMOVED = config.fetch('removed', [])
notice_types = config.fetch('noticeTypes', []).map { |nt| nt.to_s }

index = JSON.load_file File.join(opts[:input_folder], 'notice-types.json')
index = JSON.parse File.read File.join(opts[:input_folder], 'notice-types.json')
indexed = Array::new

# Make sure folder exists
Expand Down Expand Up @@ -53,7 +53,7 @@ notice_types.each do |nt|
'viewTemplateIds' => [nt.to_s, 'summary']
}))

content = JSON.load_file source
content = JSON.parse File.read source

# TODO
content['metadata'] = filter content['metadata']
Expand Down

0 comments on commit 334d962

Please sign in to comment.