summaryrefslogtreecommitdiff
path: root/src/api/endpoints/i/appdata/set.ts
diff options
context:
space:
mode:
authorsyuilo <Syuilotan@yahoo.co.jp>2018-03-28 17:05:36 +0900
committerGitHub <noreply@github.com>2018-03-28 17:05:36 +0900
commit46e530ef41bb640cfa66438e888d1ecd6f90f6bb (patch)
treea23eefae5e437ad6adc7dfe190daba81138aa70b /src/api/endpoints/i/appdata/set.ts
parent#1294 (diff)
parentoops (diff)
downloadsharkey-46e530ef41bb640cfa66438e888d1ecd6f90f6bb.tar.gz
sharkey-46e530ef41bb640cfa66438e888d1ecd6f90f6bb.tar.bz2
sharkey-46e530ef41bb640cfa66438e888d1ecd6f90f6bb.zip
Merge pull request #1324 from syuilo/#1288-2
snake_case を camelCase にするなどした
Diffstat (limited to 'src/api/endpoints/i/appdata/set.ts')
-rw-r--r--src/api/endpoints/i/appdata/set.ts8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/api/endpoints/i/appdata/set.ts b/src/api/endpoints/i/appdata/set.ts
index 2804a14cb3..1e3232ce3d 100644
--- a/src/api/endpoints/i/appdata/set.ts
+++ b/src/api/endpoints/i/appdata/set.ts
@@ -43,11 +43,11 @@ module.exports = (params, user, app) => new Promise(async (res, rej) => {
}
await Appdata.update({
- app_id: app._id,
- user_id: user._id
+ appId: app._id,
+ userId: user._id
}, Object.assign({
- app_id: app._id,
- user_id: user._id
+ appId: app._id,
+ userId: user._id
}, {
$set: set
}), {