fixed schema updates to fail in nextjs envs due to lodash's merge

This commit is contained in:
dswbx
2025-01-23 08:34:11 +01:00
parent f64e5dac03
commit 7dd42fbff3
8 changed files with 114 additions and 26 deletions

View File

@@ -1,6 +1,6 @@
import type { App } from "App";
import type { Guard } from "auth";
import { SchemaObject } from "core";
import { type DebugLogger, SchemaObject } from "core";
import type { EventManager } from "core/events";
import type { Static, TSchema } from "core/utils";
import {
@@ -35,6 +35,7 @@ export type ModuleBuildContext = {
em: EntityManager;
emgr: EventManager<any>;
guard: Guard;
logger: DebugLogger;
flags: (typeof Module)["ctx_flags"];
};

View File

@@ -231,7 +231,8 @@ export class ModuleManager {
em: this.em,
emgr: this.emgr,
guard: this.guard,
flags: Module.ctx_flags
flags: Module.ctx_flags,
logger: this.logger
};
}