From 5308975dabfe26a73df2a8a637c083b753f52328 Mon Sep 17 00:00:00 2001 From: syuilo Date: Fri, 3 Mar 2017 20:05:17 +0900 Subject: [PATCH] Fix bug --- src/api/endpoints/i/update.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/api/endpoints/i/update.ts b/src/api/endpoints/i/update.ts index a5f1538610..b0c14777ef 100644 --- a/src/api/endpoints/i/update.ts +++ b/src/api/endpoints/i/update.ts @@ -43,12 +43,12 @@ module.exports = async (params, user, _, isSecure) => if (birthday !== undefined) user.birthday = birthday; // Get 'avatar_id' parameter - const [avatarId, avatarIdErr] = it(params.avatar_id).expect.id().notNull().qed(); + const [avatarId, avatarIdErr] = it(params.avatar_id).expect.id().qed(); if (avatarIdErr) return rej('invalid avatar_id param'); if (avatarId) user.avatar_id = avatarId; // Get 'banner_id' parameter - const [bannerId, bannerIdErr] = it(params.banner_id).expect.id().notNull().qed(); + const [bannerId, bannerIdErr] = it(params.banner_id).expect.id().qed(); if (bannerIdErr) return rej('invalid banner_id param'); if (bannerId) user.banner_id = bannerId;