1
0
forked from noxious/server

Map editor improvements

This commit is contained in:
2025-01-05 01:43:44 +01:00
parent 097773995f
commit 4a55f47c06
2 changed files with 5 additions and 2 deletions

View File

@ -17,7 +17,8 @@ export default class MapDeleteEvent extends BaseEvent {
try {
this.logger.info(`Deleting map ${data.mapId}`)
await (await MapRepository.getById(data.mapId))?.delete()
const mapRepository = new MapRepository()
await (await mapRepository.getById(data.mapId))?.delete()
this.logger.info(`Map ${data.mapId} deleted successfully.`)
return callback(true)