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

pull/458/head
Stuart Long Chay Boon 2 years ago
parent 4d280f0846
commit 6bed79f1fd

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

Loading…
Cancel
Save