Class: Workarea::UpdateWishListDetails
- Inherits:
-
Object
- Object
- Workarea::UpdateWishListDetails
- Includes:
- Sidekiq::CallbacksWorker, Sidekiq::Worker
- Defined in:
- app/workers/workarea/update_wish_list_details.rb
Instance Method Summary collapse
Instance Method Details
#perform(user_id) ⇒ Object
11 12 13 14 15 16 17 |
# File 'app/workers/workarea/update_wish_list_details.rb', line 11 def perform(user_id) wish_list = Workarea::WishList.for_user(user_id) SetWishListDetails.new(wish_list).perform! rescue Mongo::Error::OperationFailure => error raise error unless error. =~ /E11000 duplicate key error collection/ logger.warn "Duplicate key error, WishList with user_id=#{user_id} already exists." end |