summaryrefslogtreecommitdiff
path: root/src/api/endpoints/i/appdata/get.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/api/endpoints/i/appdata/get.ts')
-rw-r--r--src/api/endpoints/i/appdata/get.ts6
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);