@@ -77,14 +77,6 @@ def draft(user_id:, tenant_id:,
7777 'currency_code' => invoice . sub_total_currency_code } } } )
7878 end
7979
80- EventCreatedJob . perform_async ( {
81- 'user_id' => user_id ,
82- 'tenant_id' => tenant_id ,
83- 'id' => event . id ,
84- 'type' => event . type ,
85- 'occurred_at' => event . created_at . utc . iso8601 ,
86- 'organisation_id' => event . body [ 'invoice' ] [ 'organisation_id' ] } )
87-
8880 { id : invoice . id , events : [ { id : event . id , type : event . type } ] }
8981 end
9082
@@ -196,14 +188,6 @@ def update(user_id:, tenant_id:, id:,
196188 'currency_code' => invoice . sub_total_currency_code } } } )
197189 end
198190
199- EventCreatedJob . perform_async ( {
200- 'user_id' => user_id ,
201- 'tenant_id' => tenant_id ,
202- 'id' => event . id ,
203- 'type' => event . type ,
204- 'occurred_at' => event . created_at . utc . iso8601 ,
205- 'organisation_id' => event . body [ 'invoice' ] [ 'organisation_id' ] } )
206-
207191 { id : invoice . id , events : [ { id : event . id , type : event . type } ] }
208192 end
209193
@@ -232,14 +216,6 @@ def delete(user_id:, tenant_id:, id:, time: ::Time)
232216 'deleted_at' => invoice . deleted_at } } )
233217 end
234218
235- EventCreatedJob . perform_async ( {
236- 'user_id' => user_id ,
237- 'tenant_id' => tenant_id ,
238- 'id' => event . id ,
239- 'type' => event . type ,
240- 'occurred_at' => event . created_at . utc . iso8601 ,
241- 'organisation_id' => event . body [ 'invoice' ] [ 'organisation_id' ] } )
242-
243219 { id : invoice . id , events : [ { id : event . id , type : event . type } ] }
244220 end
245221
@@ -272,14 +248,6 @@ def issue(user_id:, tenant_id:, id:, time: ::Time)
272248 'organisation_id' => invoice . organisation_id } } )
273249 end
274250
275- EventCreatedJob . perform_async ( {
276- 'user_id' => user_id ,
277- 'tenant_id' => tenant_id ,
278- 'id' => event . id ,
279- 'type' => event . type ,
280- 'occurred_at' => event . created_at . utc . iso8601 ,
281- 'organisation_id' => event . body [ 'invoice' ] [ 'organisation_id' ] } )
282-
283251 { id : invoice . id , events : [ { id : event . id , type : event . type } ] }
284252 end
285253
@@ -313,14 +281,6 @@ def paid(user_id:, tenant_id:, id:, time: ::Time)
313281 'organisation_id' => invoice . organisation_id } } )
314282 end
315283
316- EventCreatedJob . perform_async ( {
317- 'user_id' => user_id ,
318- 'tenant_id' => tenant_id ,
319- 'id' => event . id ,
320- 'type' => event . type ,
321- 'occurred_at' => event . created_at . utc . iso8601 ,
322- 'organisation_id' => event . body [ 'invoice' ] [ 'organisation_id' ] } )
323-
324284 { id : invoice . id , events : [ { id : event . id , type : event . type } ] }
325285 end
326286
@@ -346,14 +306,6 @@ def void(user_id:, tenant_id:, id:, time: ::Time)
346306 'organisation_id' => invoice . organisation_id } } )
347307 end
348308
349- EventCreatedJob . perform_async ( {
350- 'user_id' => user_id ,
351- 'tenant_id' => tenant_id ,
352- 'id' => event . id ,
353- 'type' => event . type ,
354- 'occurred_at' => event . created_at . utc . iso8601 ,
355- 'organisation_id' => event . body [ 'invoice' ] [ 'organisation_id' ] } )
356-
357309 { id : invoice . id , events : [ { id : event . id , type : event . type } ] }
358310 end
359311 end
0 commit comments