mirror of
https://github.com/yangshun/tech-interview-handbook.git
synced 2025-07-04 23:43:51 +08:00
[offers][fix] change get endpoint to query instead of mutation
This commit is contained in:
@ -47,7 +47,7 @@ export const offersUserProfileRouter = createProtectedRouter()
|
||||
});
|
||||
},
|
||||
})
|
||||
.mutation('getUserProfiles', {
|
||||
.query('getUserProfiles', {
|
||||
async resolve({ ctx }) {
|
||||
const userId = ctx.session.user.id
|
||||
const result = await ctx.prisma.user.findFirst({
|
||||
|
Reference in New Issue
Block a user