diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2018-03-28 16:46:11 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2018-03-28 16:46:11 +0900 |
| commit | 1acc30822d869fcd4edf70fd8a8dca72f21c8730 (patch) | |
| tree | 1c452aa0bf777f1cce35b3f21535ee698d3d151e /src/api/endpoints/i/update.ts | |
| parent | wip (diff) | |
| download | sharkey-1acc30822d869fcd4edf70fd8a8dca72f21c8730.tar.gz sharkey-1acc30822d869fcd4edf70fd8a8dca72f21c8730.tar.bz2 sharkey-1acc30822d869fcd4edf70fd8a8dca72f21c8730.zip | |
wip
Diffstat (limited to 'src/api/endpoints/i/update.ts')
| -rw-r--r-- | src/api/endpoints/i/update.ts | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/api/endpoints/i/update.ts b/src/api/endpoints/i/update.ts index 6645751871..45dfddcfe7 100644 --- a/src/api/endpoints/i/update.ts +++ b/src/api/endpoints/i/update.ts @@ -51,10 +51,10 @@ module.exports = async (params, user, _, isSecure) => new Promise(async (res, re if (isBotErr) return rej('invalid isBot param'); if (isBot != null) user.account.isBot = isBot; - // Get 'auto_watch' parameter - const [autoWatch, autoWatchErr] = $(params.auto_watch).optional.boolean().$; - if (autoWatchErr) return rej('invalid auto_watch param'); - if (autoWatch != null) user.account.settings.auto_watch = autoWatch; + // Get 'autoWatch' parameter + const [autoWatch, autoWatchErr] = $(params.autoWatch).optional.boolean().$; + if (autoWatchErr) return rej('invalid autoWatch param'); + if (autoWatch != null) user.account.settings.autoWatch = autoWatch; await User.update(user._id, { $set: { |