diff options
| author | Aya Morisawa <AyaMorisawa4869@gmail.com> | 2017-04-14 20:45:37 +0900 |
|---|---|---|
| committer | Aya Morisawa <AyaMorisawa4869@gmail.com> | 2017-04-14 20:45:37 +0900 |
| commit | b095efaee59572800244b34564692fd999cc4ded (patch) | |
| tree | 89a2a1401b2af797bb687d0d79cfb5e9e52d987e /src/api/endpoints/i/appdata/get.ts | |
| parent | Fix tslint.json (diff) | |
| download | misskey-b095efaee59572800244b34564692fd999cc4ded.tar.gz misskey-b095efaee59572800244b34564692fd999cc4ded.tar.bz2 misskey-b095efaee59572800244b34564692fd999cc4ded.zip | |
Migrate to tslint 5.1.0
Diffstat (limited to 'src/api/endpoints/i/appdata/get.ts')
| -rw-r--r-- | src/api/endpoints/i/appdata/get.ts | 6 |
1 files changed, 3 insertions, 3 deletions
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); |