From 1acc30822d869fcd4edf70fd8a8dca72f21c8730 Mon Sep 17 00:00:00 2001 From: syuilo Date: Wed, 28 Mar 2018 16:46:11 +0900 Subject: wip --- src/api/endpoints/i/update.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/api/endpoints/i/update.ts') 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: { -- cgit v1.2.3-freya