This commit is contained in:
Rizky 2024-01-29 09:56:27 +07:00
parent 24bb5cd0ea
commit bc9d3e3d3f
1 changed files with 10 additions and 9 deletions

View File

@ -5,7 +5,7 @@ export const _ = {
url: "/_dbs/:dbName/:action", url: "/_dbs/:dbName/:action",
async api(dbName: any, action?: string) { async api(dbName: any, action?: string) {
const { req, res } = apiContext(this); const { req, res } = apiContext(this);
if (typeof db !== "undefined") {
const body = req.params; const body = req.params;
try { try {
@ -16,5 +16,6 @@ export const _ = {
res.send(e.message); res.send(e.message);
console.error(e); console.error(e);
} }
}
}, },
}; };