Fix admin user seeding
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
2e372d1aae
commit
2e1a1fc848
@ -63,7 +63,7 @@ export default buildConfig({
|
|||||||
limit: 2,
|
limit: 2,
|
||||||
})
|
})
|
||||||
|
|
||||||
if (existingUsers.docs.length === 0 || existingUsers.docs.length === 1) {
|
if (existingUsers.docs.length === 0) {
|
||||||
await payload.create({
|
await payload.create({
|
||||||
collection: 'users',
|
collection: 'users',
|
||||||
data: {
|
data: {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user