fix(seed): fix TS cast for home-page guard
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
c07fd6913c
commit
5ca72de20f
1 changed files with 1 additions and 1 deletions
|
|
@ -345,7 +345,7 @@ export async function POST(req: NextRequest) {
|
|||
)
|
||||
|
||||
const existingHomePage = await payload.findGlobal({ slug: 'home-page', overrideAccess: true })
|
||||
const homePageNeedsUpdate = !(existingHomePage as Record<string, unknown>)?.['hero']
|
||||
const homePageNeedsUpdate = !(existingHomePage as unknown as Record<string, unknown>)?.['hero']
|
||||
if (homePageNeedsUpdate) {
|
||||
await payload.updateGlobal({
|
||||
slug: 'home-page',
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue