mirror of
https://github.com/lukevella/rallly.git
synced 2025-08-03 16:38:34 +02:00
Convert dates automatically
This commit is contained in:
parent
e1e691a45d
commit
fa0946705c
5 changed files with 160 additions and 37 deletions
|
@ -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: () => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue