mirror of
https://github.com/umami-software/umami.git
synced 2026-02-06 05:37:20 +01:00
Fixed realtime activity sort. Closes #3330
This commit is contained in:
parent
afad255e5b
commit
48b6dfe72f
7 changed files with 10 additions and 15 deletions
|
|
@ -8,13 +8,13 @@ export function useLogin(): {
|
|||
user: any;
|
||||
setUser: (data: any) => void;
|
||||
} & UseQueryResult {
|
||||
const { get, useQuery } = useApi();
|
||||
const { post, useQuery } = useApi();
|
||||
const user = useStore(selector);
|
||||
|
||||
const query = useQuery({
|
||||
queryKey: ['login'],
|
||||
queryFn: async () => {
|
||||
const data = await get('/auth/verify');
|
||||
const data = await post('/auth/verify');
|
||||
|
||||
setUser(data);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue