Skip to content

Commit 711f1a2

Browse files
ramongtxRamon Maciel
andauthored
fix(schema): ensure fields are properly sorted in SchemaFileUpdater (#541)
Co-authored-by: Ramon Maciel <ramon.maciel@qonto.com>
1 parent 83cc6c8 commit 711f1a2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/forest_liana/schema_file_updater.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ def initialize filename, collections, meta
121121

122122
# NOTICE: Sort keys
123123
@collections = @collections.map do |collection|
124-
collection['fields'].sort do |field1, field2|
124+
collection['fields'].sort! do |field1, field2|
125125
[field1['field'], field1['type'].inspect] <=> [field2['field'], field2['type'].inspect]
126126
end
127127

0 commit comments

Comments
 (0)