Fix typo in create_collection_service.rb (#38629)
This commit is contained in:
parent
eed704d4bd
commit
8bc0eaa1bb
@ -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
|
||||
|
||||
|
||||
@ -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
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user