chore: fix ci problem
This commit is contained in:
parent
e983092037
commit
f7e1c8114b
@ -4,6 +4,7 @@ import { getMinimumUnit } from '@tianji/shared';
|
||||
import { DateRange, useGlobalStateStore } from '../store/global';
|
||||
import { DateUnit } from '../utils/date';
|
||||
import { useTranslation } from '@i18next-toolkit/react';
|
||||
import { CalendarOutlined } from '@ant-design/icons';
|
||||
|
||||
export function useGlobalRangeDate(): {
|
||||
label: React.ReactNode;
|
||||
|
@ -1,7 +1,6 @@
|
||||
import { Form, Typography } from 'antd';
|
||||
import { useRequest } from '../hooks/useRequest';
|
||||
import { trpc } from '../api/trpc';
|
||||
import { setJWT } from '../api/authjs';
|
||||
import { setUserInfo } from '../store/user';
|
||||
import { useTranslation } from '@i18next-toolkit/react';
|
||||
import { createFileRoute, useNavigate } from '@tanstack/react-router';
|
||||
|
@ -26,6 +26,7 @@ export function initSocketio(httpServer: HTTPServer) {
|
||||
try {
|
||||
const token = socket.handshake.auth['token'];
|
||||
let user: UserAuthPayload;
|
||||
|
||||
if (token) {
|
||||
user = jwtVerify(token);
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user