Compare commits
3 Commits
dad7d5195e
...
1fc434cb3a
Author | SHA1 | Date | |
---|---|---|---|
1fc434cb3a | |||
a97bbf61a8 | |||
5a523fd220 |
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user