This commit is contained in:
2025-01-04 19:52:00 +01:00
parent 1f0db75806
commit 47ec425acf
3 changed files with 5 additions and 4 deletions

View File

@ -7,7 +7,7 @@ export abstract class BaseEntity {
protected readonly logger = Logger.type(LoggerType.ENTITY)
private getEntityManager(): EntityManager {
return Database.getEntityManager()
return Database.getORM().em.fork()
}
async save(): Promise<this> {