21 lines
560 B
TypeScript
21 lines
560 B
TypeScript
import { getPayload } from 'payload'
|
|
import configPromise from '../src/payload.config'
|
|
|
|
async function run() {
|
|
const payload = await getPayload({ config: configPromise })
|
|
|
|
const resDe = await payload.find({
|
|
collection: 'pages',
|
|
where: { slug: { equals: 'terminvereinbarung' } },
|
|
locale: 'de',
|
|
depth: 1
|
|
})
|
|
|
|
console.log("\\n=== DE (terminvereinbarung) ===")
|
|
const processDe = resDe.docs[0]?.layout?.find(b => b.blockType === 'process')
|
|
console.log(JSON.stringify(processDe, null, 2))
|
|
|
|
process.exit(0)
|
|
}
|
|
run().catch(console.error)
|