2
0
Files
bot/apps/viewer/services/answer.ts
2022-06-21 17:00:47 +02:00

12 lines
292 B
TypeScript

import { Answer } from 'models'
import { sendRequest } from 'utils'
export const upsertAnswer = async (
answer: Answer & { resultId: string } & { uploadedFiles?: boolean }
) =>
sendRequest<Answer>({
url: `/api/typebots/t/results/r/answers`,
method: 'PUT',
body: answer,
})