fix: source tracking (#1486)

This commit is contained in:
Dhruwang Jariwala
2023-10-28 20:00:35 +05:30
committed by GitHub
parent 5ae5a92c31
commit cf938bffa7

View File

@@ -12,18 +12,8 @@ export class ResponseAPI {
this.apiHost = apiHost;
}
async create({
surveyId,
personId,
finished,
data,
}: TResponseInput): Promise<Result<TResponse, NetworkError | Error>> {
return makeRequest(this.apiHost, "/api/v1/client/responses", "POST", {
surveyId,
personId,
finished,
data,
});
async create(responseInput: TResponseInput): Promise<Result<TResponse, NetworkError | Error>> {
return makeRequest(this.apiHost, "/api/v1/client/responses", "POST", responseInput);
}
async update({