From e8138803927dd605facf9354361baa44812e21c6 Mon Sep 17 00:00:00 2001 From: MeiMei <30769358+mei23@users.noreply.github.com> Date: Wed, 3 Oct 2018 12:37:23 +0900 Subject: [PATCH] =?UTF-8?q?6=E5=80=8B=E3=83=94=E3=83=B3=E7=95=99=E3=82=81?= =?UTF-8?q?=E3=81=A7=E3=81=8D=E3=81=A6=E3=81=97=E3=81=BE=E3=81=86=E3=81=AE?= =?UTF-8?q?=E4=BF=AE=E6=AD=A3=20(#2804)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/services/i/pin.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/services/i/pin.ts b/src/services/i/pin.ts index a39cc1e59..142fc1851 100644 --- a/src/services/i/pin.ts +++ b/src/services/i/pin.ts @@ -26,7 +26,7 @@ export async function addPinned(user: IUser, noteId: mongo.ObjectID) { const pinnedNoteIds = user.pinnedNoteIds || []; - if (pinnedNoteIds.length > 5) { + if (pinnedNoteIds.length >= 5) { throw new Error('cannot pin more notes'); }