Updates
This commit is contained in:
@@ -82,8 +82,6 @@ async function addUser({ key, payload, database }) {
|
||||
dbSchema = JSON.parse(fs.readFileSync(localDbSchemaPath, "utf8"));
|
||||
} catch (error) {}
|
||||
|
||||
console.log("Reading from local database ...");
|
||||
|
||||
if (dbSchema) {
|
||||
return await localAddUser({
|
||||
dbSchema: dbSchema,
|
||||
|
||||
@@ -111,8 +111,6 @@ async function getUser({ key, userId, database, fields }) {
|
||||
dbSchema = JSON.parse(fs.readFileSync(localDbSchemaPath, "utf8"));
|
||||
} catch (error) {}
|
||||
|
||||
console.log("Reading from local database ...");
|
||||
|
||||
if (dbSchema) {
|
||||
return await getLocalUser({
|
||||
userId,
|
||||
|
||||
@@ -130,8 +130,6 @@ async function loginUser({
|
||||
dbSchema = JSON.parse(fs.readFileSync(localDbSchemaPath, "utf8"));
|
||||
} catch (error) {}
|
||||
|
||||
console.log("Reading from local database ...");
|
||||
|
||||
if (dbSchema) {
|
||||
httpResponse = await loginLocalUser({
|
||||
payload,
|
||||
|
||||
@@ -119,8 +119,6 @@ async function reauthUser({
|
||||
dbSchema = JSON.parse(fs.readFileSync(localDbSchemaPath, "utf8"));
|
||||
} catch (error) {}
|
||||
|
||||
console.log("Reading from local database ...");
|
||||
|
||||
if (dbSchema) {
|
||||
httpResponse = await localReauthUser({
|
||||
existingUser: existingUser.payload,
|
||||
|
||||
@@ -165,8 +165,6 @@ async function githubAuth({
|
||||
dbSchema = JSON.parse(fs.readFileSync(localDbSchemaPath, "utf8"));
|
||||
} catch (error) {}
|
||||
|
||||
console.log("Reading from local database ...");
|
||||
|
||||
if (dbSchema) {
|
||||
httpResponse = await localGithubAuth({
|
||||
dbSchema: dbSchema,
|
||||
|
||||
@@ -161,8 +161,6 @@ async function googleAuth({
|
||||
dbSchema = JSON.parse(fs.readFileSync(localDbSchemaPath, "utf8"));
|
||||
} catch (error) {}
|
||||
|
||||
console.log("Reading from local database ...");
|
||||
|
||||
if (dbSchema) {
|
||||
httpResponse = await localGoogleAuth({
|
||||
dbSchema: dbSchema,
|
||||
|
||||
@@ -74,8 +74,6 @@ async function updateUser({ key, payload, database }) {
|
||||
dbSchema = JSON.parse(fs.readFileSync(localDbSchemaPath, "utf8"));
|
||||
} catch (error) {}
|
||||
|
||||
console.log("Reading from local database ...");
|
||||
|
||||
if (dbSchema) {
|
||||
return await localUpdateUser({
|
||||
dbSchema: dbSchema,
|
||||
|
||||
Reference in New Issue
Block a user