refactor(utils): setCallback

This commit is contained in:
Linden committed 2023-07-28 06:09:08 +10:00
1 parent 68f0dc526a
commit bcb703a11f
4 files changed
+21 -26

No files matched your search

+4
View File
@@ -14,6 +14,10 @@ export const executeType = (query: string) => {
};
export const parseExecute = (placeholders: number, parameters: CFXParameters) => {
const parametersType = typeof parameters;
if (!parameters || parametersType !== 'object') return [];
if (!Array.isArray(parameters)) {
if (typeof parameters === 'object') {
const arr: unknown[] = [];