forked from noxious/server
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.`)
|
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)
|
return callback(maps)
|
||||||
} catch (error: any) {
|
} catch (error: any) {
|
||||||
this.logger.error('gm:map:list error', error.message)
|
this.logger.error('gm:map:list error', error.message)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user