Skip to content

Commit

Permalink
Fixes #36329: Read UI notification cache as JSON
Browse files Browse the repository at this point in the history
The UI notification data is cached as JSON and when retrieved needs
to also be JSON or else a marshalling error is thrown.
  • Loading branch information
ehelms committed Aug 4, 2023
1 parent 7c41286 commit 96d5287
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/services/ui_notifications/cache_handler.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ def initialize(user_id = User.current.try(:id))

# JSON Payload
def payload
result = cache.read(cache_key)
result = cache.read(cache_key, raw: true)
if result
logger.debug("Cache Hit: notification, reading cache for #{cache_key}")
return result
Expand Down

0 comments on commit 96d5287

Please sign in to comment.