Skip to content

Commit

Permalink
fix: list default markets 500 (#1394)
Browse files Browse the repository at this point in the history
  • Loading branch information
yangkaa authored Sep 7, 2023
1 parent c9cc8d0 commit 599daa5
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions console/repositories/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -462,6 +462,11 @@ def create_default_app_market_if_not_exists(self, markets_all, eid):

if markets or os.getenv("DISABLE_DEFAULT_APP_MARKET", False):
return
# Due to the default domain name change in the application market,
# a database unique index error will be triggered when created with name.
# For compatibility, so if there is an application market with the same name, no longer create
if markets_all.filter(name=name):
return
AppMarket.objects.create(
name=name,
url=url,
Expand Down

0 comments on commit 599daa5

Please sign in to comment.