[offers][fix] change get endpoint to query instead of mutation

This commit is contained in:
Stuart Long Chay Boon
2022-10-29 21:46:22 +08:00
parent 4d280f0846
commit 6bed79f1fd

View File

@ -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({