export const profileRouter = createTRPCRouter({
get: privateProcedure.query(({ ctx }) => {
const profile = ctx.db.profiles.findFirst({
where: {
id: ctx.user.id,
},
});
return profile;
}),
export const profileRouter = createTRPCRouter({
get: privateProcedure.query(({ ctx }) => {
const profile = ctx.db.profiles.findFirst({
where: {
id: ctx.user.id,
},
});
return profile;
}),