Attempt to fix performance :(((
This commit is contained in:
@ -2,9 +2,12 @@ import { BaseRepository } from '#application/base/baseRepository'
|
||||
import { UUID } from '#application/types'
|
||||
import { Map } from '#entities/map'
|
||||
import { MapEventTile } from '#entities/mapEventTile'
|
||||
import { MapObject } from '#entities/mapObject'
|
||||
|
||||
class MapRepository extends BaseRepository {
|
||||
public readonly POPULATE_ALL = ['*']
|
||||
public readonly POPULATE_MAP_EDITOR = ['mapEventTiles', 'placedMapObjects', 'mapEffects']
|
||||
public readonly POPULATE_TELEPORT = ['placedMapObjects', 'mapEffects']
|
||||
|
||||
async getFirst(): Promise<Map | null> {
|
||||
try {
|
||||
const repository = this.getEntityManager().getRepository(Map)
|
||||
|
Reference in New Issue
Block a user