Skip to content

Commit 24609f4

Browse files
committed
Merge branch 'padms/3890' into staging
2 parents 1cf1c91 + bce58d0 commit 24609f4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

web/app/api/revalidate-sanity/route.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ export async function POST(req: NextRequest) {
4747
const docLang = body?.lang
4848
const docSlug = body?.slug
4949

50-
if (!docType || !docId || !docSlug || !docLang) {
50+
if (!docType && !docSlug && !docLang) {
5151
const message = 'Bad Request'
5252
return new Response(JSON.stringify({ message, body }), { status: 400 })
5353
}

0 commit comments

Comments
 (0)