Skip to content

Commit

Permalink
fix: correct query of providers
Browse files Browse the repository at this point in the history
  • Loading branch information
devniel committed Aug 21, 2024
1 parent 7bf2010 commit dee925b
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions packages/app/src/app/api/resolve/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -96,11 +96,10 @@ export async function POST(req: NextRequest) {
[ClapWorkflowProvider.AITUBE]: resolveSegmentUsingAiTube,
}

// console.log(`API ResolveRequest = `, request.settings)
const resolveSegment: ProviderFn | undefined =
engine === ClapWorkflowEngine.COMFYUI_WORKFLOW
? comfyProviders[engine] || undefined
: providers[engine] || undefined
? comfyProviders[provider] || undefined
: providers[provider] || undefined

if (!resolveSegment || typeof resolveSegment !== 'function') {
throw new Error(
Expand Down

0 comments on commit dee925b

Please sign in to comment.