refactor: remove obsolete project mode

This commit is contained in:
saturn
2026-03-25 15:39:16 +08:00
parent fd8f5f8635
commit ca5d8a58f7
47 changed files with 40 additions and 157 deletions

View File

@@ -11,7 +11,7 @@ export const POST = apiHandler(async (
const { projectId } = await context.params
const authResult = await requireProjectAuth(projectId)
if (isErrorResponse(authResult)) return authResult
const { session, project } = authResult
const { session } = authResult
const body = await request.json().catch(() => ({}))
const currentPrompt = typeof body?.currentPrompt === 'string' ? body.currentPrompt.trim() : ''
@@ -19,10 +19,6 @@ export const POST = apiHandler(async (
if (!currentPrompt || !modifyInstruction) {
throw new ApiError('INVALID_PARAMS')
}
if (project.mode !== 'novel-promotion') {
throw new ApiError('INVALID_PARAMS')
}
const panelId = typeof body?.panelId === 'string' ? body.panelId.trim() : ''
const episodeId = typeof body?.episodeId === 'string' ? body.episodeId.trim() : ''