respect_bg_domain_updates in routes/api (#962)

This commit is contained in:
steschuser 2021-08-05 19:39:26 +02:00 committed by GitHub
parent 6e04d0419b
commit c4a9498898
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -973,6 +973,7 @@ def api_zone_subpath_forward(server_id, zone_id, subpath):
@apikey_can_access_domain
def api_zone_forward(server_id, zone_id):
resp = helper.forward_request()
if not Setting().get('bg_domain_updates'):
domain = Domain()
domain.update()
status = resp.status_code