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