mirror of
https://github.com/bknd-io/bknd/
synced 2026-08-03 00:26:01 +00:00
merged origin/release/0.12
This commit is contained in:
@@ -100,7 +100,7 @@ export class SystemController extends Controller {
|
||||
try {
|
||||
return c.json(await cb(), { status: 202 });
|
||||
} catch (e) {
|
||||
console.error(e);
|
||||
$console.error("config update error", e);
|
||||
|
||||
if (e instanceof TypeInvalidError) {
|
||||
return c.json(
|
||||
@@ -161,7 +161,6 @@ export class SystemController extends Controller {
|
||||
if (this.app.modules.get(module).schema().has(path)) {
|
||||
return c.json({ success: false, path, error: "Path already exists" }, { status: 400 });
|
||||
}
|
||||
console.log("-- add", module, path, value);
|
||||
|
||||
return await handleConfigUpdateResponse(c, async () => {
|
||||
await this.app.mutateConfig(module).patch(path, value);
|
||||
|
||||
Reference in New Issue
Block a user