Update Types
This commit is contained in:
+2
-2
@@ -69,7 +69,7 @@ async function localGet({ options, dbSchema }) {
|
||||
return { success: true, payload: results };
|
||||
|
||||
////////////////////////////////////////
|
||||
} catch (error) {
|
||||
} catch (/** @type {*} */ error) {
|
||||
////////////////////////////////////////
|
||||
|
||||
console.log("Error in local get Request =>", error.message);
|
||||
@@ -78,7 +78,7 @@ async function localGet({ options, dbSchema }) {
|
||||
}
|
||||
|
||||
////////////////////////////////////////
|
||||
} catch (error) {
|
||||
} catch (/** @type {*} */ error) {
|
||||
////////////////////////////////////////
|
||||
console.log("Error in local get Request =>", error.message);
|
||||
|
||||
|
||||
@@ -72,7 +72,7 @@ async function localPost({ options, dbSchema }) {
|
||||
};
|
||||
|
||||
////////////////////////////////////////
|
||||
} catch (error) {
|
||||
} catch (/** @type {*} */ error) {
|
||||
////////////////////////////////////////
|
||||
|
||||
return {
|
||||
@@ -83,7 +83,7 @@ async function localPost({ options, dbSchema }) {
|
||||
}
|
||||
|
||||
////////////////////////////////////////
|
||||
} catch (error) {
|
||||
} catch (/** @type {*} */ error) {
|
||||
////////////////////////////////////////
|
||||
console.log("Error in local post Request =>", error.message);
|
||||
|
||||
|
||||
@@ -127,7 +127,7 @@ async function updateApiSchemaFromLocalDb() {
|
||||
/** ********************************************** */
|
||||
|
||||
return httpResponse;
|
||||
} catch (error) {
|
||||
} catch (/** @type {*} */ error) {
|
||||
return {
|
||||
success: false,
|
||||
payload: null,
|
||||
|
||||
@@ -101,7 +101,7 @@ async function addDbEntry({ dbContext, paradigm, dbFullName, tableName, data, ta
|
||||
}
|
||||
|
||||
insertValuesArray.push(value);
|
||||
} catch (error) {
|
||||
} catch (/** @type {*} */ error) {
|
||||
console.log("DSQL: Error in parsing data keys =>", error.message);
|
||||
continue;
|
||||
}
|
||||
|
||||
@@ -127,7 +127,7 @@ async function runQuery({ dbFullName, query, readOnly, dbSchema, queryValuesArra
|
||||
////////////////////////////////////////
|
||||
////////////////////////////////////////
|
||||
////////////////////////////////////////
|
||||
} catch (error) {
|
||||
} catch (/** @type {*} */ error) {
|
||||
console.log("Error in Running Query =>", error.message);
|
||||
result = null;
|
||||
error = error.message;
|
||||
|
||||
@@ -96,7 +96,7 @@ async function updateDbEntry({ dbContext, paradigm, dbFullName, tableName, data,
|
||||
|
||||
////////////////////////////////////////
|
||||
////////////////////////////////////////
|
||||
} catch (error) {
|
||||
} catch (/** @type {*} */ error) {
|
||||
////////////////////////////////////////
|
||||
////////////////////////////////////////
|
||||
|
||||
|
||||
Reference in New Issue
Block a user