mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-17 21:19:38 -04:00
Update live services count when service is counted
If we change our mind and decide whether a service should/should not be counted in the list of live services then we should also drop the cache which stores the count of how many live services there are.
This commit is contained in:
@@ -65,6 +65,9 @@ class Service(JSONModel):
|
||||
def update(self, **kwargs):
|
||||
return service_api_client.update_service(self.id, **kwargs)
|
||||
|
||||
def update_count_as_live(self, count_as_live):
|
||||
return service_api_client.update_count_as_live(self.id, count_as_live=count_as_live)
|
||||
|
||||
def update_status(self, live):
|
||||
return service_api_client.update_status(self.id, live=live)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user