last I hope

This commit is contained in:
2025-10-16 12:47:24 -04:00
parent 694c58e449
commit 7fa3b06673

View File

@@ -1,8 +1,5 @@
import { toServerResult } from "@/lib/tanstack-query/utils/to-server-result";
import {
superTokensAdminFunctionMiddleware,
superTokensFunctionMiddleware,
} from "@/utils/supertokens";
import { superTokensAdminFunctionMiddleware, superTokensFunctionMiddleware } from "@/utils/supertokens";
import { createServerFn } from "@tanstack/react-start";
import { pbAdmin } from "@/lib/pocketbase/client";
import { z } from "zod";
@@ -23,7 +20,7 @@ export const migrateBadgeProgress = createServerFn()
export const getAllBadges = createServerFn()
.middleware([superTokensFunctionMiddleware])
.handler(async () =>
toServerResult(() => pbAdmin.listBadges())
toServerResult(() => pbAdmin.listBadges())
);
export const getAllEarnedBadges = createServerFn()