Skip to content

Commit

Permalink
chore: added TODO for handling initial queue position when contents a…
Browse files Browse the repository at this point in the history
…re available
  • Loading branch information
vanbasten17 committed Feb 13, 2025
1 parent 10e41fb commit ccae5be
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions packages/botonic-plugin-flow-builder/src/action/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ import { getContentsByFallback } from './fallback'
import { getContentsByFirstInteraction } from './first-interaction'
import { getContentsByKnowledgeBase } from './knowledge-bases'
import { getContentsByPayload } from './payload'
import { INPUT } from '@botonic/core'

export type FlowBuilderActionProps = {
contents: FlowContent[]
Expand Down Expand Up @@ -84,9 +83,8 @@ async function getContents(
return await getContentsByFirstInteraction(context)
}

if (request.input.type === INPUT.EVENT_INITIAL_QUEUE_POSITION) {
// TODO: Think how we will get this content
}
// TODO: Add logic when we can define contents for initial queue position message
// if (request.input.type === INPUT.EVENT_INITIAL_QUEUE_POSITION) { }

if (request.input.payload || contentID) {
const contentsByPayload = await getContentsByPayload(context)
Expand Down

0 comments on commit ccae5be

Please sign in to comment.