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

@@ -26,11 +26,7 @@ export const POST = apiHandler(async (
include: { characters: true, locations: true },
})
if (isErrorResponse(authResult)) return authResult
const { session, project } = authResult
if (project.mode !== 'novel-promotion') {
throw new ApiError('INVALID_PARAMS')
}
const { session } = authResult
const asyncTaskResponse = await maybeSubmitLLMTask({
request,