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
|
return
|
||||||
|
|
||||||
# delete corresponding record from our app
|
# delete corresponding record from our app
|
||||||
obj = importer.get_target_object((change.uuid,))
|
if obj := importer.get_target_object((change.farmos_uuid,)):
|
||||||
if obj:
|
|
||||||
importer.delete_target_object(obj)
|
importer.delete_target_object(obj)
|
||||||
|
|
||||||
# TODO: this should live elsewhere
|
# TODO: this should live elsewhere
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue