| 
									
										
										
										
											2017-04-05 21:41:50 +02:00
										 |  |  | # frozen_string_literal: true | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | class RemoteProfileUpdateWorker | 
					
						
							|  |  |  |   include Sidekiq::Worker | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |   sidekiq_options queue: 'pull' | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |   def perform(account_id, body, resubscribe) | 
					
						
							| 
									
										
										
										
											2017-04-08 13:26:03 +02:00
										 |  |  |     UpdateRemoteProfileService.new.call(body, Account.find(account_id), resubscribe) | 
					
						
							| 
									
										
										
										
											2017-04-05 21:41:50 +02:00
										 |  |  |   rescue ActiveRecord::RecordNotFound | 
					
						
							|  |  |  |     true | 
					
						
							|  |  |  |   end | 
					
						
							|  |  |  | end |