diff --git a/package.json b/package.json index 177e8a4..b26bc0f 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "datasquirel", - "version": "1.9.4", + "version": "1.9.5", "description": "Cloud-based SQL data management tool", "main": "index.js", "bin": { diff --git a/users/add-user.js b/users/add-user.js index a605b9f..8f5babc 100644 --- a/users/add-user.js +++ b/users/add-user.js @@ -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, diff --git a/users/get-user.js b/users/get-user.js index c055704..5183081 100644 --- a/users/get-user.js +++ b/users/get-user.js @@ -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, diff --git a/users/login-user.js b/users/login-user.js index 6cd20b3..b20b1db 100644 --- a/users/login-user.js +++ b/users/login-user.js @@ -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, diff --git a/users/reauth-user.js b/users/reauth-user.js index 9d581a6..275a72b 100644 --- a/users/reauth-user.js +++ b/users/reauth-user.js @@ -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, diff --git a/users/social/github-auth.js b/users/social/github-auth.js index f8e8bce..bb35365 100644 --- a/users/social/github-auth.js +++ b/users/social/github-auth.js @@ -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, diff --git a/users/social/google-auth.js b/users/social/google-auth.js index d01e67a..29ca04d 100644 --- a/users/social/google-auth.js +++ b/users/social/google-auth.js @@ -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, diff --git a/users/update-user.js b/users/update-user.js index 79214ad..6012c6b 100644 --- a/users/update-user.js +++ b/users/update-user.js @@ -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, diff --git a/utils/get.js b/utils/get.js index 487dacc..b6e695d 100644 --- a/utils/get.js +++ b/utils/get.js @@ -77,8 +77,6 @@ async function get({ key, db, query, queryValues, tableName }) { dbSchema = JSON.parse(fs.readFileSync(localDbSchemaPath, "utf8")); } catch (error) {} - console.log("Reading from local database ..."); - return await localGet({ dbSchema: dbSchema, options: { diff --git a/utils/post.js b/utils/post.js index 5f95048..4e51e42 100644 --- a/utils/post.js +++ b/utils/post.js @@ -89,8 +89,6 @@ async function post({ key, query, queryValues, database, tableName }) { dbSchema = JSON.parse(fs.readFileSync(localDbSchemaPath, "utf8")); } catch (error) {} - console.log("Reading from local database ..."); - return await localPost({ dbSchema: dbSchema, options: {