1
1
mirror of https://github.com/kokonect-link/cherrypick synced 2024-10-31 15:21:46 +09:00

6個ピン留めできてしまうの修正 (#2804)

This commit is contained in:
MeiMei 2018-10-03 12:37:23 +09:00 committed by syuilo
parent 9a57efa6d9
commit e813880392

View File

@ -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');
}