Skip to content

Commit

Permalink
fix parser of time in convert_result method
Browse files Browse the repository at this point in the history
- changed direct method call to lambda with guard and original method call
- handled situation when value is already of a Time class by adding guard
  • Loading branch information
Pepan committed Jun 26, 2019
1 parent d97bda2 commit 87d40e7
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/que/connection.rb
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,10 @@ def convert_params(params)
},

# Timestamp with time zone
1184 => Time.method(:parse),
1184 => -> (value) {
return value if value.is_a? Time
Time.parse value if value.is_a? String
}
}

# JSON, JSONB
Expand Down

0 comments on commit 87d40e7

Please sign in to comment.