Adding batch support
This commit is contained in:
@ -49,7 +49,7 @@ V1.post("/db/:database/query", async ctx => {
|
||||
}
|
||||
}
|
||||
|
||||
ctx.body = await db.run(query, session).catch(err => {
|
||||
ctx.body = await db.run([query], session).catch(err => {
|
||||
if (err instanceof QueryError) {
|
||||
throw new BadRequestError(err.message);
|
||||
}
|
||||
|
Reference in New Issue
Block a user