refactor: implement trpc client pattern for EarnAndBurn Journey

This commit is contained in:
Arvid Norlin
2024-08-16 16:21:45 +02:00
parent 1bcd3b81e1
commit f96712538e
4 changed files with 145 additions and 128 deletions

View File

@@ -459,6 +459,7 @@ export const userQueryRouter = router({
.query(async ({ ctx, input }) => {
const { limit, page } = input
const apiResponse = await api.get(api.endpoints.v1.friendTransactions, {
cache: undefined, // override defaultOptions
headers: {
Authorization: `Bearer ${ctx.session.token.access_token}`,
},