mirror of
https://github.com/darksaid98/oxmysql.git
synced 2026-12-04 14:38:50 +00:00
fix(db): ignore errors during ref call
This commit is contained in:
1 parent
7752b7fc12
commit
56729ef9c1
2 files changed
+4
No files matched your search
@@ -52,6 +52,7 @@ export const rawExecute = async (
|
|||||||
connection.release();
|
connection.release();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
try {
|
||||||
if (cb) {
|
if (cb) {
|
||||||
if (single) {
|
if (single) {
|
||||||
if (type === null) {
|
if (type === null) {
|
||||||
@@ -65,4 +66,5 @@ export const rawExecute = async (
|
|||||||
cb(response);
|
cb(response);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
} catch (err) {}
|
||||||
};
|
};
|
||||||
@@ -22,7 +22,9 @@ export const rawQuery = async (
|
|||||||
if (err) return reject(err);
|
if (err) return reject(err);
|
||||||
|
|
||||||
logQuery(invokingResource, query, executionTime, parameters);
|
logQuery(invokingResource, query, executionTime, parameters);
|
||||||
|
try {
|
||||||
resolve(cb ? cb(parseResponse(type, result)) : null);
|
resolve(cb ? cb(parseResponse(type, result)) : null);
|
||||||
|
} catch (err) {}
|
||||||
});
|
});
|
||||||
}).catch((err) => {
|
}).catch((err) => {
|
||||||
throw new Error(
|
throw new Error(
|
||||||
|
|||||||
Reference in new issue
Block a user