修复解除合并,未清理cache问题

dependabot/npm_and_yarn/fir_admin/ws-5.2.3
youngS 3 years ago
parent 586136729a
commit 4e3af4de35
  1. 5
      fir_ser/api/views/apps.py

@ -163,6 +163,7 @@ class AppInfoView(APIView):
else:
pass
del_cache_response_by_short(apps_obj.first().app_id)
del_cache_response_by_short(has_combo.first().app_id)
except Exception as e:
logger.error("app_id:%s actions:%s hcombo_id:%s Exception:%s" % (app_id, actions, hcombo_id, e))
@ -308,7 +309,9 @@ class AppReleaseinfoView(APIView):
delete_app_screenshots_files(storage, apps_obj)
has_combo = apps_obj.has_combo
if has_combo:
apps_obj.has_combo.has_combo = None
has_combo.has_combo = None
has_combo.save()
del_cache_response_by_short(has_combo.app_id)
apps_obj.delete()
else:
pass

Loading…
Cancel
Save