protected shared
Some checks are pending
CI / build (push) Waiting to run
docker / Build & Publish (push) Waiting to run

This commit is contained in:
archie 2026-04-07 18:31:45 +01:00
parent 4125cd813b
commit 114486a78a
2 changed files with 5 additions and 1 deletions

View file

@ -24,6 +24,10 @@ const VideoList: NextPage = () => {
const posthog = usePostHog();
const [, setRecordOpen] = useAtom(recordVideoModalOpen);
if (status === "unauthenticated") {
void router.replace("/sign-in");
}
const { data: video, isLoading } = api.video.get.useQuery(
{ videoId },
{

View file

@ -49,7 +49,7 @@ export const videoRouter = createTRPCRouter({
return videosWithThumbnailUrl;
}
),
get: publicProcedure
get: protectedProcedure
.input(z.object({ videoId: z.string() }))
.query(async ({ ctx, input }) => {
const { s3, posthog, session, prisma } = ctx;