mirror of
https://github.com/rickbarrette/redmine_qbo.git
synced 2026-04-02 08:21:57 -04:00
Use delete not destroy
This commit is contained in:
@@ -48,12 +48,12 @@ class WebhookProcessJob < ActiveJob::Base
|
||||
return unless model
|
||||
|
||||
if entity['deletedId']
|
||||
model.destroy(entity['deletedId'])
|
||||
model.delete(entity['deletedId'])
|
||||
return
|
||||
end
|
||||
|
||||
if entity['operation'] == "Delete"
|
||||
model.destroy(id)
|
||||
model.delete(id)
|
||||
else
|
||||
model.sync_by_id(id)
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user