fix(ReactQuery): add organization id in query keys.

This commit is contained in:
a.bouhuolia
2021-03-15 11:55:38 +02:00
parent 2e3fd64e2b
commit f1cf02c9df
27 changed files with 140 additions and 76 deletions

View File

@@ -1,4 +1,5 @@
import { useMutation, useQuery } from 'react-query';
import { useMutation } from 'react-query';
import { useQueryTenant } from '../useQueryTenant';
import useApiRequest from '../useRequest';
/**
@@ -20,7 +21,7 @@ export const useAuthInviteAccept = (props) => {
export const useInviteMetaByToken = (token, props) => {
const apiRequest = useApiRequest();
return useQuery(
return useQueryTenant(
['INVITE_META', token],
() => apiRequest.get(`invite/invited/${token}`),
{