fix(db-postgres) incorrect currentTableName in find for blocks (#4524)

This commit is contained in:
Ritsu
2023-12-19 17:30:13 +02:00
committed by GitHub
parent 7a4607897d
commit ef43629502
4 changed files with 97 additions and 4 deletions

View File

@@ -0,0 +1,35 @@
import type { CollectionConfig } from '../../../../packages/payload/src/collections/config/types'
export const nestedToArrayAndBlockCollectionSlug = 'nested-to-array-and-block'
export const NestedToArrayAndBlock: CollectionConfig = {
slug: nestedToArrayAndBlockCollectionSlug,
fields: [
{
type: 'blocks',
name: 'blocks',
blocks: [
{
slug: 'block',
fields: [
{
name: 'array',
type: 'array',
fields: [
{
name: 'text',
type: 'text',
localized: true,
},
{
name: 'textNotLocalized',
type: 'text',
},
],
},
],
},
],
},
],
}