Updates
This commit is contained in:
+4
-4
@@ -55,7 +55,7 @@ function addDbEntry(_a) {
|
||||
if ((duplicateValue === null || duplicateValue === void 0 ? void 0 : duplicateValue[0]) && !update) {
|
||||
return {
|
||||
success: false,
|
||||
payload: undefined,
|
||||
postInsertReturn: undefined,
|
||||
msg: "Duplicate entry found",
|
||||
};
|
||||
}
|
||||
@@ -151,7 +151,7 @@ function addDbEntry(_a) {
|
||||
});
|
||||
return {
|
||||
success: Boolean(newInsert === null || newInsert === void 0 ? void 0 : newInsert.insertId),
|
||||
payload: newInsert,
|
||||
postInsertReturn: newInsert,
|
||||
queryObject: {
|
||||
sql: query,
|
||||
params: finalQueryValues,
|
||||
@@ -190,7 +190,7 @@ function addDbEntry(_a) {
|
||||
}
|
||||
return {
|
||||
success: Boolean(newInsert === null || newInsert === void 0 ? void 0 : newInsert.insertId),
|
||||
payload: newInsert,
|
||||
postInsertReturn: newInsert,
|
||||
queryObject: {
|
||||
sql: (0, sql_formatter_1.format)(query),
|
||||
params: finalQueryValues,
|
||||
@@ -200,7 +200,7 @@ function addDbEntry(_a) {
|
||||
else {
|
||||
return {
|
||||
success: false,
|
||||
payload: undefined,
|
||||
postInsertReturn: undefined,
|
||||
msg: "No data provided",
|
||||
};
|
||||
}
|
||||
|
||||
@@ -32,7 +32,7 @@ function updateDbEntry(_a) {
|
||||
if (!data || !Object.keys(data).length) {
|
||||
return {
|
||||
success: false,
|
||||
payload: undefined,
|
||||
postInsertReturn: undefined,
|
||||
msg: "No data provided",
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user