mirror of
https://github.com/danswer-ai/danswer.git
synced 2025-07-01 18:20:49 +02:00
refactored _add_user_filter usage (#3674)
* refactored db.connector_credential_pair * Rerfactored the db.credentials user filtering * the restr
This commit is contained in:
@ -141,7 +141,10 @@ def _delete_connector(cc_pair_id: int, db_session: Session) -> None:
|
||||
return
|
||||
|
||||
logger.notice("Getting connector credential pair")
|
||||
cc_pair = get_connector_credential_pair_from_id(cc_pair_id, db_session)
|
||||
cc_pair = get_connector_credential_pair_from_id(
|
||||
db_session=db_session,
|
||||
cc_pair_id=cc_pair_id,
|
||||
)
|
||||
|
||||
if not cc_pair:
|
||||
logger.error(f"Connector credential pair with ID {cc_pair_id} not found")
|
||||
|
Reference in New Issue
Block a user