mirror of
https://github.com/lobehub/lobe-chat.git
synced 2026-06-17 21:08:36 +00:00
🐛 fix: fix data not show correctly in 1.77.11 (#7311)
This commit is contained in:
@@ -7,8 +7,6 @@
|
||||
* @link https://trpc.io/docs/v11/router
|
||||
* @link https://trpc.io/docs/v11/procedures
|
||||
*/
|
||||
import { DESKTOP_USER_ID } from '@/const/desktop';
|
||||
import { isDesktop } from '@/const/version';
|
||||
|
||||
import { trpc } from './init';
|
||||
import { jwtPayloadChecker } from './middleware/jwtPayload';
|
||||
@@ -24,11 +22,7 @@ export const router = trpc.router;
|
||||
* Create an unprotected procedure
|
||||
* @link https://trpc.io/docs/v11/procedures
|
||||
**/
|
||||
export const publicProcedure = trpc.procedure.use(({ next }) => {
|
||||
return next({
|
||||
ctx: { userId: isDesktop ? DESKTOP_USER_ID : null },
|
||||
});
|
||||
});
|
||||
export const publicProcedure = trpc.procedure;
|
||||
|
||||
// procedure that asserts that the user is logged in
|
||||
export const authedProcedure = trpc.procedure.use(userAuth);
|
||||
|
||||
Reference in New Issue
Block a user