Fix typo in create_collection_service.rb (#38629)

This commit is contained in:
Shlee 2026-04-10 18:25:23 +09:30 committed by GitHub
parent eed704d4bd
commit 8bc0eaa1bb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -42,7 +42,7 @@ class CreateCollectionService
def notify_local_users
@collection.collection_items.select(&:with_local_account?).each do |collection_item|
LocalNotificationWorker.perform_async(@account.id, collection_item.id, collection_item.class.name, 'added_to_collection')
LocalNotificationWorker.perform_async(collection_item.account_id, collection_item.id, collection_item.class.name, 'added_to_collection')
end
end

View File

@ -68,7 +68,7 @@ RSpec.describe CreateCollectionService do
expect(LocalNotificationWorker)
.to have_enqueued_sidekiq_job
.with(author.id, anything, 'CollectionItem', 'added_to_collection')
.with(accounts.last.id, anything, 'CollectionItem', 'added_to_collection')
end
end