fix batch upsert

This commit is contained in:
Rizky
2024-10-09 14:16:03 +07:00
parent 0825b55d82
commit 4bf174a09c
3 changed files with 12 additions and 2 deletions
+2 -1
View File
@@ -8,7 +8,8 @@ export const _ = {
url: "/_dbs/*",
raw: true,
async api() {
const { req, res } = apiContext(this);
const ctx = apiContext(this);
const { req, res } = ctx;
if (typeof g.db !== "undefined") {
if (req.params._ === "check") {
return { mode: "encrypted" };