Update Types

This commit is contained in:
Tben
2023-08-13 14:56:56 +01:00
parent 80e34fa6ec
commit 4aa65011e3
31 changed files with 60 additions and 39 deletions
+2 -2
View File
@@ -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);
+2 -2
View File
@@ -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,
+1 -1
View File
@@ -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;
}
+1 -1
View File
@@ -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;
+1 -1
View File
@@ -96,7 +96,7 @@ async function updateDbEntry({ dbContext, paradigm, dbFullName, tableName, data,
////////////////////////////////////////
////////////////////////////////////////
} catch (error) {
} catch (/** @type {*} */ error) {
////////////////////////////////////////
////////////////////////////////////////