fix: return value if parse fails

This commit is contained in:
Shivam Mishra
2024-08-22 18:18:41 +05:30
parent 761c4885d9
commit f7f583fd98
+1 -1
View File
@@ -50,7 +50,7 @@ class Integrations::OpenaiBaseService
JSON.parse(value, symbolize_names: true)
rescue JSON::ParserError
nil
value
end
def save_to_cache(response)