This commit is contained in:
Benjamin Toby 2025-06-01 16:13:56 +01:00
parent 8639c9f34d
commit 4a083fe73b
3 changed files with 17 additions and 11 deletions

View File

@ -87,11 +87,14 @@ function handleSocialDb(_a) {
console.log("handleSocialDb:existingEmailOnly", existingEmailOnly); console.log("handleSocialDb:existingEmailOnly", existingEmailOnly);
} }
if (existingEmailOnly === null || existingEmailOnly === void 0 ? void 0 : existingEmailOnly[0]) { if (existingEmailOnly === null || existingEmailOnly === void 0 ? void 0 : existingEmailOnly[0]) {
return { return yield (0, loginSocialUser_1.default)({
success: false, user: existingEmailOnly[0],
payload: null, social_platform,
msg: "This Email is already taken", invitation,
}; database: finalDbName,
additionalFields,
debug,
});
} }
else if (loginOnly) { else if (loginOnly) {
return { return {

View File

@ -108,11 +108,14 @@ export default async function handleSocialDb({
} }
if (existingEmailOnly?.[0]) { if (existingEmailOnly?.[0]) {
return { return await loginSocialUser({
success: false, user: existingEmailOnly[0],
payload: null, social_platform,
msg: "This Email is already taken", invitation,
}; database: finalDbName,
additionalFields,
debug,
});
} else if (loginOnly) { } else if (loginOnly) {
return { return {
success: false, success: false,

View File

@ -1,6 +1,6 @@
{ {
"name": "@moduletrace/datasquirel", "name": "@moduletrace/datasquirel",
"version": "4.6.9", "version": "4.7.0",
"description": "Cloud-based SQL data management tool", "description": "Cloud-based SQL data management tool",
"main": "dist/index.js", "main": "dist/index.js",
"bin": { "bin": {