mirror of
https://github.com/lukevella/rallly.git
synced 2025-04-30 10:46:35 +02:00
👁️ Make calls to user api public
This commit is contained in:
parent
76c501f45f
commit
77dc11eaf7
1 changed files with 3 additions and 3 deletions
|
@ -1,10 +1,10 @@
|
|||
import { prisma } from "@rallly/database";
|
||||
import { z } from "zod";
|
||||
|
||||
import { privateProcedure, router } from "../trpc";
|
||||
import { possiblyPublicProcedure, privateProcedure, router } from "../trpc";
|
||||
|
||||
export const user = router({
|
||||
getBilling: privateProcedure.query(async ({ ctx }) => {
|
||||
getBilling: possiblyPublicProcedure.query(async ({ ctx }) => {
|
||||
return await prisma.userPaymentData.findUnique({
|
||||
select: {
|
||||
subscriptionId: true,
|
||||
|
@ -19,7 +19,7 @@ export const user = router({
|
|||
},
|
||||
});
|
||||
}),
|
||||
subscription: privateProcedure.query(async ({ ctx }) => {
|
||||
subscription: possiblyPublicProcedure.query(async ({ ctx }) => {
|
||||
const user = await prisma.user.findUnique({
|
||||
where: {
|
||||
id: ctx.user.id,
|
||||
|
|
Loading…
Add table
Reference in a new issue