2
0
Files
bot/apps/viewer/services/answer.ts

12 lines
292 B
TypeScript
Raw Normal View History

2022-01-06 09:40:56 +01:00
import { Answer } from 'models'
2021-12-30 10:24:16 +01:00
import { sendRequest } from 'utils'
export const upsertAnswer = async (
answer: Answer & { resultId: string } & { uploadedFiles?: boolean }
) =>
2022-03-01 11:40:22 +01:00
sendRequest<Answer>({
url: `/api/typebots/t/results/r/answers`,
2021-12-30 10:24:16 +01:00
method: 'PUT',
body: answer,
})