Skip to content

Commit

Permalink
django: update ep status with registration update
Browse files Browse the repository at this point in the history
Signed-off-by: Jonas Remmert <j.remmert@phytec.de>
  • Loading branch information
jonas-rem committed Sep 7, 2024
1 parent 085826e commit 709002d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions server/django/sensordata/serializers/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,8 @@ def handle_resource(self, ep, obj_id, res):
ep.save()
return
elif res_type.name == 'ep_registration_update':
ep.registered = True
ep.save()
process_pending_operations.delay(ep.endpoint)
return

Expand Down

0 comments on commit 709002d

Please sign in to comment.