Files
bot/apps/viewer/src/features/results/queries/createResultQuery.ts

10 lines
276 B
TypeScript
Raw Normal View History

import { Result } from 'models'
import { sendRequest } from 'utils'
export const createResultQuery = async (typebotId: string) => {
return sendRequest<{ result: Result; hasReachedLimit: boolean }>({
url: `/api/typebots/${typebotId}/results`,
method: 'POST',
})
}