Úprava API pro podporu TypeScript

This commit is contained in:
2025-01-08 17:02:29 +01:00
parent a2167038da
commit 414664b2d7
4 changed files with 14 additions and 14 deletions

View File

@@ -8,5 +8,5 @@ export const getFeatureVotes = async () => {
}
export const updateFeatureVote = async (option: FeatureRequest, active: boolean) => {
return await api.post<any, any>(`${VOTING_API_PREFIX}/updateVote`, JSON.stringify({ option, active }));
return await api.post<any, any>(`${VOTING_API_PREFIX}/updateVote`, { option, active });
}