Merge branch 'master' into live
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Râu Cao 2025-05-05 17:39:06 +04:00
commit 1fc434cb3a
Signed by: raucao
GPG Key ID: 37036C356E56CC51

View File

@ -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