Úprava API pro podporu TypeScript
This commit is contained in:
@@ -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 });
|
||||
}
|
||||
Reference in New Issue
Block a user