(20241129) Started talking to MariaDB for integration.
This commit is contained in:
@@ -66,9 +66,6 @@ from utils_v2.goog.gmail.gmail_client import SCOPES_GMAIL_MAIL_MANAGEMENT
|
||||
# Common:
|
||||
from shared import constants
|
||||
|
||||
# Behaviour Models:
|
||||
from models.behaviour.mail.oauth import MailOAuthModel
|
||||
|
||||
# Data Models:
|
||||
from models.data.mail.oauth import (
|
||||
OAuthMailAuthorizationRequestHeaders,
|
||||
@@ -178,8 +175,10 @@ async def request_oauth_authorization_url(
|
||||
# ┛
|
||||
|
||||
# Make a user identifier from the session info:
|
||||
user_identifier = await MailOAuthModel.get_id(
|
||||
db_conn = current_app.data_mongo,
|
||||
user_identifier = await current_app.mail_oauth_model.get_user_identifier(
|
||||
db_conn = current_app.sql_writer,
|
||||
mongo_conn = current_app.data_mongo,
|
||||
session_token = inbound_headers["X-Session-Token"],
|
||||
user_info = kwargs["session_info"],
|
||||
service_type = "email",
|
||||
service_client = inbound_data.mailClient,
|
||||
|
||||
Reference in New Issue
Block a user