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/set.ts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/api/endpoints/i/appdata/set.ts') diff --git a/src/api/endpoints/i/appdata/set.ts b/src/api/endpoints/i/appdata/set.ts index eea17fd0d8..07178d6507 100644 --- a/src/api/endpoints/i/appdata/set.ts +++ b/src/api/endpoints/i/appdata/set.ts @@ -37,10 +37,10 @@ module.exports = (params, user, app, isSecure) => new Promise(async (res, rej) = let set = {}; if (data) { Object.entries(data).forEach(([k, v]) => { - set['data.' + k] = v; + set[`data.${k}`] = v; }); } else { - set['data.' + key] = value; + set[`data.${key}`] = value; } if (isSecure) { @@ -63,10 +63,10 @@ module.exports = (params, user, app, isSecure) => new Promise(async (res, rej) = app_id: app._id, user_id: user._id }, { - $set: set - }), { - upsert: true - }); + $set: set + }), { + upsert: true + }); res(204); } -- cgit v1.2.3-freya