Skip to content

Commit

Permalink
try
Browse files Browse the repository at this point in the history
  • Loading branch information
xjunior committed May 10, 2024
1 parent 07f9c8b commit a78e630
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/audiences-multi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,21 +52,21 @@ jobs:
- uses: actions/checkout@v3
- name: Install non-ruby dependencies
run: sudo apt-get install libpq-dev
- name: 'mysql2 adapter'
- name: 'postgresql adapter'
uses: powerhome/github-actions-workflows/ruby-gem@rubygem-action
env:
DATABASE_ADAPTER: mysql2
DATABASE_PORT: 3306
DATABASE_ADAPTER: postgresql
DATABASE_PORT: 5432
with:
workdir: audiences
ruby: ${{ matrix.ruby }}
gemfile: ${{ matrix.gemfile }}
- name: 'postgresql adapter'
gemfile: ${{ matrix.gemfile }}
- name: 'mysql2 adapter'
uses: powerhome/github-actions-workflows/ruby-gem@rubygem-action
env:
DATABASE_ADAPTER: postgresql
DATABASE_PORT: 5432
DATABASE_ADAPTER: mysql2
DATABASE_PORT: 3306
with:
workdir: audiences
ruby: ${{ matrix.ruby }}
gemfile: ${{ matrix.gemfile }}
gemfile: ${{ matrix.gemfile }}
2 changes: 1 addition & 1 deletion audiences/app/models/audiences/users_search.rb
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def users
private

def result
@result ||= @scope.where("#{data_attribute_query} LIKE ?", "%#{@query}%")
@result ||= @scope.where("to_json(data) LIKE ?", "%#{@query}%")
end

def data_attribute_query
Expand Down

0 comments on commit a78e630

Please sign in to comment.