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);
}
if (existingEmailOnly === null || existingEmailOnly === void 0 ? void 0 : existingEmailOnly[0]) {
return {
success: false,
payload: null,
msg: "This Email is already taken",
};
return yield (0, loginSocialUser_1.default)({
user: existingEmailOnly[0],
social_platform,
invitation,
database: finalDbName,
additionalFields,
debug,
});
}
else if (loginOnly) {
return {

View File

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

View File

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