This commit is contained in:
2025-01-10 23:23:20 +01:00
parent 3869eefaaf
commit 4232042a06
2 changed files with 2 additions and 6 deletions

View File

@ -19,11 +19,7 @@ class MapEventTileRepository extends BaseRepository {
async getEventTileByMapIdAndPosition(mapId: UUID, positionX: number, positionY: number) {
try {
const repository = this.getEntityManager().getRepository(MapEventTile)
const result = await repository.findOne({
map: mapId,
positionX: positionX,
positionY: positionY
})
const result = await repository.findOne({ map: mapId, positionX: positionX, positionY: positionY })
if (result) result.setEntityManager(this.getEntityManager())
return result