map editor
This commit is contained in:
parent
1dd0e73c4a
commit
db7121a4fa
@ -15,7 +15,9 @@ export default class MapListEvent extends BaseEvent {
|
||||
|
||||
this.logger.info(`User ${(await this.getCharacter())!.getId()} has created a new map via map editor.`)
|
||||
|
||||
const maps = await MapRepository.getAll()
|
||||
const mapRepository = new MapRepository()
|
||||
const maps = await mapRepository.getAll()
|
||||
|
||||
return callback(maps)
|
||||
} catch (error: any) {
|
||||
this.logger.error('gm:map:list error', error.message)
|
||||
|
Loading…
x
Reference in New Issue
Block a user