Skip to content

Commit

Permalink
Merge pull request #1395 from longguikeji/feature-402
Browse files Browse the repository at this point in the history
feat: 🎸 更新delete
  • Loading branch information
hanbinloop authored Nov 10, 2022
2 parents d548618 + d66b4c5 commit 518d1cf
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions arkid/common/bind_saas.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,8 +107,8 @@ def set_saas_bind_slug(tenant, data):
def create_arkidstore_login_app(tenant, saas_tenant_id):
from arkid.core.models import App
url = f"{settings.ARKSTOER_URL}/api/v1/login?tenant_id={saas_tenant_id}"
app = App.objects.filter(tenant=tenant, name="ArkStore", url=url)
if app:
apps = App.valid_objects.filter(tenant=tenant, name="ArkStore", url=url)
for app in apps:
app.delete()
create_tenant_oidc_app(tenant, url, '开发与代理', '开发商与代理商的管理后台',
'https://s1.ax1x.com/2022/07/04/jJrVxg.png')
Expand All @@ -117,8 +117,8 @@ def create_arkidstore_login_app(tenant, saas_tenant_id):
def create_arkid_saas_login_app(tenant, saas_tenant_id, saas_login_url=None):
from arkid.core.models import App
url = saas_login_url or f"{settings.ARKID_SAAS_URL}/login?tenant_id={saas_tenant_id}"
app = App.objects.filter(tenant=tenant, name="Central ArkID", url=url)
if app:
apps = App.valid_objects.filter(tenant=tenant, name="Central ArkID", url=url)
for app in apps:
app.delete()
# create_tenant_oidc_app(tenant, url, 'Central ArkID', '中心ArkID',
# 'https://s1.ax1x.com/2022/07/04/jJDh2F.png')
Expand Down

0 comments on commit 518d1cf

Please sign in to comment.