From 5f09165128c1f49edf9ab1d3ca35256eca189298 Mon Sep 17 00:00:00 2001 From: Hongbo Wu Date: Thu, 7 Dec 2023 10:55:25 +0800 Subject: [PATCH] allow bulk action on max 100 items --- packages/api/src/resolvers/article/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/api/src/resolvers/article/index.ts b/packages/api/src/resolvers/article/index.ts index 162dc380f..49e025502 100644 --- a/packages/api/src/resolvers/article/index.ts +++ b/packages/api/src/resolvers/article/index.ts @@ -822,8 +822,8 @@ export const bulkActionResolver = authorized< }, }) - // the query size is limited to 1000 characters - if (!query || query.length > 1000) { + // the query size is limited to 4000 characters to allow for 100 items + if (!query || query.length > 4000) { log.error('bulkActionResolver error', { error: 'QueryTooLong', query,