fix: use correct uuid when processing webhook to delete record
This commit is contained in:
parent
f9d9923acf
commit
ca5e1420e4
1 changed files with 1 additions and 2 deletions
|
|
@ -94,8 +94,7 @@ class ChangeProcessor:
|
|||
return
|
||||
|
||||
# delete corresponding record from our app
|
||||
obj = importer.get_target_object((change.uuid,))
|
||||
if obj:
|
||||
if obj := importer.get_target_object((change.farmos_uuid,)):
|
||||
importer.delete_target_object(obj)
|
||||
|
||||
# TODO: this should live elsewhere
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue