Updates
This commit is contained in:
parent
23bb0668b7
commit
0fa2a7fa20
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "datasquirel",
|
"name": "datasquirel",
|
||||||
"version": "1.9.4",
|
"version": "1.9.5",
|
||||||
"description": "Cloud-based SQL data management tool",
|
"description": "Cloud-based SQL data management tool",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"bin": {
|
"bin": {
|
||||||
|
@ -82,8 +82,6 @@ async function addUser({ key, payload, database }) {
|
|||||||
dbSchema = JSON.parse(fs.readFileSync(localDbSchemaPath, "utf8"));
|
dbSchema = JSON.parse(fs.readFileSync(localDbSchemaPath, "utf8"));
|
||||||
} catch (error) {}
|
} catch (error) {}
|
||||||
|
|
||||||
console.log("Reading from local database ...");
|
|
||||||
|
|
||||||
if (dbSchema) {
|
if (dbSchema) {
|
||||||
return await localAddUser({
|
return await localAddUser({
|
||||||
dbSchema: dbSchema,
|
dbSchema: dbSchema,
|
||||||
|
@ -111,8 +111,6 @@ async function getUser({ key, userId, database, fields }) {
|
|||||||
dbSchema = JSON.parse(fs.readFileSync(localDbSchemaPath, "utf8"));
|
dbSchema = JSON.parse(fs.readFileSync(localDbSchemaPath, "utf8"));
|
||||||
} catch (error) {}
|
} catch (error) {}
|
||||||
|
|
||||||
console.log("Reading from local database ...");
|
|
||||||
|
|
||||||
if (dbSchema) {
|
if (dbSchema) {
|
||||||
return await getLocalUser({
|
return await getLocalUser({
|
||||||
userId,
|
userId,
|
||||||
|
@ -130,8 +130,6 @@ async function loginUser({
|
|||||||
dbSchema = JSON.parse(fs.readFileSync(localDbSchemaPath, "utf8"));
|
dbSchema = JSON.parse(fs.readFileSync(localDbSchemaPath, "utf8"));
|
||||||
} catch (error) {}
|
} catch (error) {}
|
||||||
|
|
||||||
console.log("Reading from local database ...");
|
|
||||||
|
|
||||||
if (dbSchema) {
|
if (dbSchema) {
|
||||||
httpResponse = await loginLocalUser({
|
httpResponse = await loginLocalUser({
|
||||||
payload,
|
payload,
|
||||||
|
@ -119,8 +119,6 @@ async function reauthUser({
|
|||||||
dbSchema = JSON.parse(fs.readFileSync(localDbSchemaPath, "utf8"));
|
dbSchema = JSON.parse(fs.readFileSync(localDbSchemaPath, "utf8"));
|
||||||
} catch (error) {}
|
} catch (error) {}
|
||||||
|
|
||||||
console.log("Reading from local database ...");
|
|
||||||
|
|
||||||
if (dbSchema) {
|
if (dbSchema) {
|
||||||
httpResponse = await localReauthUser({
|
httpResponse = await localReauthUser({
|
||||||
existingUser: existingUser.payload,
|
existingUser: existingUser.payload,
|
||||||
|
@ -165,8 +165,6 @@ async function githubAuth({
|
|||||||
dbSchema = JSON.parse(fs.readFileSync(localDbSchemaPath, "utf8"));
|
dbSchema = JSON.parse(fs.readFileSync(localDbSchemaPath, "utf8"));
|
||||||
} catch (error) {}
|
} catch (error) {}
|
||||||
|
|
||||||
console.log("Reading from local database ...");
|
|
||||||
|
|
||||||
if (dbSchema) {
|
if (dbSchema) {
|
||||||
httpResponse = await localGithubAuth({
|
httpResponse = await localGithubAuth({
|
||||||
dbSchema: dbSchema,
|
dbSchema: dbSchema,
|
||||||
|
@ -161,8 +161,6 @@ async function googleAuth({
|
|||||||
dbSchema = JSON.parse(fs.readFileSync(localDbSchemaPath, "utf8"));
|
dbSchema = JSON.parse(fs.readFileSync(localDbSchemaPath, "utf8"));
|
||||||
} catch (error) {}
|
} catch (error) {}
|
||||||
|
|
||||||
console.log("Reading from local database ...");
|
|
||||||
|
|
||||||
if (dbSchema) {
|
if (dbSchema) {
|
||||||
httpResponse = await localGoogleAuth({
|
httpResponse = await localGoogleAuth({
|
||||||
dbSchema: dbSchema,
|
dbSchema: dbSchema,
|
||||||
|
@ -74,8 +74,6 @@ async function updateUser({ key, payload, database }) {
|
|||||||
dbSchema = JSON.parse(fs.readFileSync(localDbSchemaPath, "utf8"));
|
dbSchema = JSON.parse(fs.readFileSync(localDbSchemaPath, "utf8"));
|
||||||
} catch (error) {}
|
} catch (error) {}
|
||||||
|
|
||||||
console.log("Reading from local database ...");
|
|
||||||
|
|
||||||
if (dbSchema) {
|
if (dbSchema) {
|
||||||
return await localUpdateUser({
|
return await localUpdateUser({
|
||||||
dbSchema: dbSchema,
|
dbSchema: dbSchema,
|
||||||
|
@ -77,8 +77,6 @@ async function get({ key, db, query, queryValues, tableName }) {
|
|||||||
dbSchema = JSON.parse(fs.readFileSync(localDbSchemaPath, "utf8"));
|
dbSchema = JSON.parse(fs.readFileSync(localDbSchemaPath, "utf8"));
|
||||||
} catch (error) {}
|
} catch (error) {}
|
||||||
|
|
||||||
console.log("Reading from local database ...");
|
|
||||||
|
|
||||||
return await localGet({
|
return await localGet({
|
||||||
dbSchema: dbSchema,
|
dbSchema: dbSchema,
|
||||||
options: {
|
options: {
|
||||||
|
@ -89,8 +89,6 @@ async function post({ key, query, queryValues, database, tableName }) {
|
|||||||
dbSchema = JSON.parse(fs.readFileSync(localDbSchemaPath, "utf8"));
|
dbSchema = JSON.parse(fs.readFileSync(localDbSchemaPath, "utf8"));
|
||||||
} catch (error) {}
|
} catch (error) {}
|
||||||
|
|
||||||
console.log("Reading from local database ...");
|
|
||||||
|
|
||||||
return await localPost({
|
return await localPost({
|
||||||
dbSchema: dbSchema,
|
dbSchema: dbSchema,
|
||||||
options: {
|
options: {
|
||||||
|
Loading…
Reference in New Issue
Block a user