Skip to content

Commit

Permalink
Merge branch 'feat/firecrawl-data-source' into deploy/dev
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnJyong committed Jun 6, 2024
2 parents 8a7b142 + 1ce9844 commit 2ad4e2f
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions api/controllers/console/auth/data_source_bearer_auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@
from controllers.console import api
from libs.login import login_required
from services.auth.api_key_auth_service import ApiKeyAuthService
from .error import ApiKeyAuthFailedError

from ..setup import setup_required
from ..wraps import account_initialization_required

Expand Down Expand Up @@ -44,7 +42,7 @@ def post(self):
try:
ApiKeyAuthService.create_provider_auth(current_user.current_tenant_id, args)
except Exception as e:
raise ApiKeyAuthFailedError(str(e))
return {'error': str(e)}, 500
return {'result': 'success'}, 200


Expand Down

0 comments on commit 2ad4e2f

Please sign in to comment.