fix(visibility): 기존 시드 행도 숨김 갱신되도록 DO UPDATE + 재사용 경고 JSDoc
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -8,6 +8,8 @@ export type HideableService = 'saju' | 'music' | 'gyeol' | 'packages' | 'lotto';
|
||||
/**
|
||||
* 서비스 노출 여부. admin_token 세션이면 항상 true.
|
||||
* service_settings 조회 실패(테이블 미생성 등) 시 안전하게 숨김(false).
|
||||
* @warning 레거시 숨김 전용 — 일반 공개 서비스(products 등) 가드에 재사용 금지.
|
||||
* fail-closed 정책이라 DB 일시 장애 시 404가 됨. 캐싱 없음(매 렌더 DB 조회).
|
||||
*/
|
||||
export async function isServiceVisible(id: HideableService): Promise<boolean> {
|
||||
const cookieStore = await cookies();
|
||||
|
||||
Reference in New Issue
Block a user