Skip to content

Commit

Permalink
possible fix for gd oauth in the cloud
Browse files Browse the repository at this point in the history
  • Loading branch information
Richard Kuo (Danswer) committed Jan 9, 2025
1 parent 97a963b commit 6b208bc
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions backend/onyx/server/documents/credential.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
from onyx.auth.users import current_user
from onyx.db.credentials import alter_credential
from onyx.db.credentials import cleanup_gmail_credentials
from onyx.db.credentials import cleanup_google_drive_credentials
from onyx.db.credentials import create_credential
from onyx.db.credentials import CREDENTIAL_PERMISSIONS_TO_IGNORE
from onyx.db.credentials import delete_credential
Expand Down Expand Up @@ -133,8 +132,6 @@ def create_credential_from_model(
# Temporary fix for empty Google App credentials
if credential_info.source == DocumentSource.GMAIL:
cleanup_gmail_credentials(db_session=db_session)
if credential_info.source == DocumentSource.GOOGLE_DRIVE:
cleanup_google_drive_credentials(db_session=db_session)

credential = create_credential(credential_info, user, db_session)
return ObjectCreationIdResponse(
Expand Down

0 comments on commit 6b208bc

Please sign in to comment.