1
0
forked from noxious/server

Continuation of refactor

This commit is contained in:
2024-12-28 20:40:05 +01:00
parent 6dda79f8b2
commit e1a6f650fb
27 changed files with 158 additions and 236 deletions

View File

@ -1,10 +1,10 @@
import { EntityManager } from '@mikro-orm/core'
import Database from '#application/database'
import { Logger } from '#application/logger'
import Logger, { LoggerType } from '#application/logger'
export abstract class BaseEntity {
protected readonly logger: Logger = new Logger('entity')
protected readonly logger = Logger.type(LoggerType.ENTITY)
private getEntityManager(): EntityManager {
return Database.getEntityManager()