Fixed realtime activity sort. Closes #3330

This commit is contained in:
Mike Cao 2025-04-22 23:01:37 -07:00
parent afad255e5b
commit 48b6dfe72f
7 changed files with 10 additions and 15 deletions

View file

@ -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);