fix(seed): fix TS cast for home-page guard
Some checks are pending
CI / Type Check (push) Waiting to run
CI / Lint (push) Waiting to run
CI / Unit Tests (push) Waiting to run
Deploy / Build & Push Image (push) Waiting to run
Deploy / Deploy to VPS (push) Blocked by required conditions

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Vadym Samoilenko 2026-05-18 13:31:15 +01:00
parent c07fd6913c
commit 5ca72de20f

View file

@ -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',