diff --git a/app/models/remote_storage_authorization.rb b/app/models/remote_storage_authorization.rb index d2d3700..f6a7fed 100644 --- a/app/models/remote_storage_authorization.rb +++ b/app/models/remote_storage_authorization.rb @@ -78,7 +78,7 @@ class RemoteStorageAuthorization < ApplicationRecord when /sqlite/ query.where("json_extract(arguments, '$.arguments') = ?", job_args.to_json) when /postgres/ - query.where("arguments->>'arguments' = ?", job_args.to_json) + query.where("CAST(arguments AS jsonb)->>'arguments' = ?", job_args.to_json) else raise "Unsupported database adapter" end.destroy_all