start upgrading eslint

This commit is contained in:
Matteo Pagliazzi
2019-10-08 16:57:10 +02:00
parent 90c917f69e
commit 621787915c
304 changed files with 5992 additions and 6394 deletions

View File

@@ -3,10 +3,10 @@ import {
TAVERN_ID as tavernId,
} from '../../models/group';
let api = {};
const api = {};
async function getWorldBoss () {
let tavern = await Group
const tavern = await Group
.findById(tavernId)
.select('quest.progress quest.key quest.active quest.extra')
.exec();
@@ -34,7 +34,7 @@ api.getWorldState = {
method: 'GET',
url: '/world-state',
async handler (req, res) {
let worldState = {};
const worldState = {};
worldState.worldBoss = await getWorldBoss();
worldState.npcImageSuffix = 'spring';