From b095efaee59572800244b34564692fd999cc4ded Mon Sep 17 00:00:00 2001 From: Aya Morisawa Date: Fri, 14 Apr 2017 20:45:37 +0900 Subject: Migrate to tslint 5.1.0 --- src/api/endpoints/i/appdata/get.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/api/endpoints/i/appdata/get.ts') diff --git a/src/api/endpoints/i/appdata/get.ts b/src/api/endpoints/i/appdata/get.ts index 47e1b8d202..a1a57fa13a 100644 --- a/src/api/endpoints/i/appdata/get.ts +++ b/src/api/endpoints/i/appdata/get.ts @@ -32,14 +32,14 @@ module.exports = (params, user, app, isSecure) => new Promise(async (res, rej) = } else { const select = {}; if (key !== null) { - select['data.' + key] = true; + select[`data.${key}`] = true; } const appdata = await Appdata.findOne({ app_id: app._id, user_id: user._id }, { - fields: select - }); + fields: select + }); if (appdata) { res(appdata.data); -- cgit v1.2.3-freya