chore: remove faulty cache revalidation tags
This commit is contained in:
@@ -14,16 +14,10 @@ export const accountPageQueryRouter = router({
|
|||||||
.query(async ({ input }) => {
|
.query(async ({ input }) => {
|
||||||
try {
|
try {
|
||||||
const url = "/my-pages/overview"
|
const url = "/my-pages/overview"
|
||||||
const response = await request<GetAccountPageData>(
|
const response = await request<GetAccountPageData>(GetAccountPage, {
|
||||||
GetAccountPage,
|
locale: input.lang,
|
||||||
{
|
url,
|
||||||
locale: input.lang,
|
})
|
||||||
url,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
tags: [`${url}-${input.lang}`],
|
|
||||||
}
|
|
||||||
)
|
|
||||||
|
|
||||||
if (!response.data) {
|
if (!response.data) {
|
||||||
throw badRequestError()
|
throw badRequestError()
|
||||||
@@ -49,16 +43,10 @@ export const accountPageQueryRouter = router({
|
|||||||
.query(async ({ input }) => {
|
.query(async ({ input }) => {
|
||||||
try {
|
try {
|
||||||
const url = "/my-pages/benefits"
|
const url = "/my-pages/benefits"
|
||||||
const response = await request<GetAccountPageData>(
|
const response = await request<GetAccountPageData>(GetAccountPage, {
|
||||||
GetAccountPage,
|
locale: input.lang,
|
||||||
{
|
url,
|
||||||
locale: input.lang,
|
})
|
||||||
url,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
tags: [`${url}-${input.lang}`],
|
|
||||||
}
|
|
||||||
)
|
|
||||||
|
|
||||||
if (!response.data) {
|
if (!response.data) {
|
||||||
throw badRequestError()
|
throw badRequestError()
|
||||||
|
|||||||
Reference in New Issue
Block a user