From 2e1a1fc848ae29a9d1d477ea7088cc7fc0444f74 Mon Sep 17 00:00:00 2001 From: tobias Date: Fri, 18 Apr 2025 18:52:32 +0900 Subject: [PATCH] Fix admin user seeding --- payload.config.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/payload.config.ts b/payload.config.ts index 65cade6..0780f8e 100644 --- a/payload.config.ts +++ b/payload.config.ts @@ -63,7 +63,7 @@ export default buildConfig({ limit: 2, }) - if (existingUsers.docs.length === 0 || existingUsers.docs.length === 1) { + if (existingUsers.docs.length === 0) { await payload.create({ collection: 'users', data: {