mirror of
https://github.com/darksaid98/oxmysql.git
synced 2026-12-01 22:21:51 +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
@@ -32,7 +32,8 @@ export const rawQuery = async (
|
||||
);
|
||||
}
|
||||
|
||||
try {
|
||||
return cb ? cb(response) : response;
|
||||
} catch {}
|
||||
if (cb)
|
||||
try {
|
||||
cb(response);
|
||||
} catch {}
|
||||
};
|
||||
Reference in new issue
Block a user