Skip to content

Commit 733794f

Browse files
authored
Convert count fields into integer (#62)
1 parent 78e5321 commit 733794f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/graphql/shopify_graphql/get_bulk_operation.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@ def parse_data(data)
4040
created_at: Time.find_zone("UTC").parse(data.createdAt),
4141
completed_at: data.completedAt ? Time.find_zone("UTC").parse(data.completedAt) : nil,
4242
url: data.url,
43-
object_count: data.objectCount,
44-
root_object_count: data.rootObjectCount,
43+
object_count: data.objectCount.to_i,
44+
root_object_count: data.rootObjectCount.to_i,
4545
)
4646
end
4747
end

0 commit comments

Comments
 (0)