Updates
This commit is contained in:
@@ -23,13 +23,9 @@ export default async function handleSocialDb({
|
||||
additionalFields,
|
||||
debug,
|
||||
loginOnly,
|
||||
apiUserId,
|
||||
}: HandleSocialDbFunctionParams): Promise<APIResponseObject> {
|
||||
try {
|
||||
const finalDbName = grabDbFullName({
|
||||
dbName: database,
|
||||
userId: apiUserId,
|
||||
});
|
||||
const finalDbName = database;
|
||||
|
||||
const existingSocialUserQUery = `SELECT * FROM users WHERE email = ? AND social_login='1' AND social_platform = ? `;
|
||||
const existingSocialUserValues = [email, social_platform];
|
||||
|
||||
@@ -17,7 +17,6 @@ export default async function apiGoogleLogin({
|
||||
additionalData,
|
||||
debug,
|
||||
loginOnly,
|
||||
apiUserId,
|
||||
}: APIGoogleLoginFunctionParams): Promise<APIResponseObject> {
|
||||
try {
|
||||
const gUser: GoogleOauth2User | undefined = await new Promise(
|
||||
@@ -79,7 +78,6 @@ export default async function apiGoogleLogin({
|
||||
additionalFields,
|
||||
debug,
|
||||
loginOnly,
|
||||
apiUserId,
|
||||
});
|
||||
|
||||
////////////////////////////////////////
|
||||
|
||||
Reference in New Issue
Block a user