mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-16 21:00:31 +00:00
fix(ReactQuery): add organization id in query keys.
This commit is contained in:
@@ -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}`),
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user