mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-29 02:34:02 -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:
@@ -263,7 +263,7 @@ def service_switch_count_as_live(service_id):
|
||||
)
|
||||
|
||||
if form.validate_on_submit():
|
||||
current_service.update(count_as_live=form.enabled.data)
|
||||
current_service.update_count_as_live(form.enabled.data)
|
||||
return redirect(url_for('.service_settings', service_id=service_id))
|
||||
|
||||
return render_template(
|
||||
|
||||
Reference in New Issue
Block a user