refactor(database): response is always a callback now

This commit is contained in:
Linden committed 2022-03-25 05:38:18 +00:00
1 parent 901e6c0baa
commit dd05cb8e68
3 files changed
+12 -9

No files matched your search

+4 -3
View File
@@ -58,7 +58,8 @@ export const rawExecute = async (
connection.release();
}
try {
return cb ? cb(response) : response;
} catch {}
if (cb)
try {
cb(response);
} catch {}
};
+4 -3
View File
@@ -32,7 +32,8 @@ export const rawQuery = async (
);
}
try {
return cb ? cb(response) : response;
} catch {}
if (cb)
try {
cb(response);
} catch {}
};
+4 -3
View File
@@ -45,7 +45,8 @@ export const rawTransaction = async (
connection.release();
}
try {
return cb ? cb(response) : response;
} catch {}
if (cb)
try {
cb(response);
} catch {}
};