Move specific matcher for data migration jobs list

This commit is contained in:
Max Wofford 2025-05-01 21:10:13 -04:00
parent 76c1cdfa0d
commit 5ee22ae985

View file

@ -40,7 +40,7 @@ class User < ApplicationRecord
def data_migration_jobs
GoodJob::Job.where(
"serialized_params->>'arguments' LIKE ?", "%#{id}%"
"serialized_params->>'arguments' = ?", [ id ].to_json
).where(
"job_class = ?", "OneTime::MigrateUserFromHackatimeJob"
).order(created_at: :desc).limit(10).all