updateTask won't run unless you call the function expression
Just a note, router.post does not return a promise, and therefor is not affected by await so you might as well remove the function expression entirely.
You're already applying onSuccess which will trigger after router has posted.