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
|
return unless model
|
||||||
|
|
||||||
if entity['deletedId']
|
if entity['deletedId']
|
||||||
model.destroy(entity['deletedId'])
|
model.delete(entity['deletedId'])
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
if entity['operation'] == "Delete"
|
if entity['operation'] == "Delete"
|
||||||
model.destroy(id)
|
model.delete(id)
|
||||||
else
|
else
|
||||||
model.sync_by_id(id)
|
model.sync_by_id(id)
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user