Convert dates automatically

This commit is contained in:
Luke Vella 2022-04-12 19:38:37 +02:00
parent e1e691a45d
commit fa0946705c
5 changed files with 160 additions and 37 deletions

View file

@ -32,7 +32,7 @@ const ManagePoll: React.VoidFunctionComponent<{
const queryClient = useQueryClient();
const { mutate: resetDates } = useMutation(
async () => {
await axios.get(`/api/legacy/${poll.urlId}?reset=true`);
await axios.get(`/api/legacy/${poll.urlId}/reset`);
},
{
onSettled: () => {