mirror of
https://github.com/darksaid98/oxmysql.git
synced 2026-12-03 14:38:50 +00:00
refactor(database): response is always a callback now
This commit is contained in:
1 parent
901e6c0baa
commit
dd05cb8e68
3 files changed
+12
-9
No files matched your search
@@ -58,7 +58,8 @@ export const rawExecute = async (
|
|||||||
connection.release();
|
connection.release();
|
||||||
}
|
}
|
||||||
|
|
||||||
try {
|
if (cb)
|
||||||
return cb ? cb(response) : response;
|
try {
|
||||||
} catch {}
|
cb(response);
|
||||||
|
} catch {}
|
||||||
};
|
};
|
||||||
@@ -32,7 +32,8 @@ export const rawQuery = async (
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
try {
|
if (cb)
|
||||||
return cb ? cb(response) : response;
|
try {
|
||||||
} catch {}
|
cb(response);
|
||||||
|
} catch {}
|
||||||
};
|
};
|
||||||
@@ -45,7 +45,8 @@ export const rawTransaction = async (
|
|||||||
connection.release();
|
connection.release();
|
||||||
}
|
}
|
||||||
|
|
||||||
try {
|
if (cb)
|
||||||
return cb ? cb(response) : response;
|
try {
|
||||||
} catch {}
|
cb(response);
|
||||||
|
} catch {}
|
||||||
};
|
};
|
||||||
Reference in new issue
Block a user