forked from noxious/server
Continuation of refactor
This commit is contained in:
@ -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()
|
||||
|
Reference in New Issue
Block a user