@go-avro/avro-js 0.0.2-beta.91 → 0.0.2-beta.92
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -120,7 +120,7 @@ export class AvroQueryClient {
|
|
|
120
120
|
const queryClient = useQueryClient();
|
|
121
121
|
return useMutation({
|
|
122
122
|
mutationFn: async ({ username, email, code, newPassword, cancelToken }) => {
|
|
123
|
-
await this.post(
|
|
123
|
+
await this.post(`/user/${username ?? email}/password`, JSON.stringify({ code, password: newPassword }), cancelToken, { 'Content-Type': 'application/json' });
|
|
124
124
|
},
|
|
125
125
|
onSettled: () => {
|
|
126
126
|
queryClient.invalidateQueries();
|