Skip to content

Commit d1c0523

Browse files
authored
Merge pull request #251 from FalkorDB/no-cache
Fix #250 no cache
2 parents 6dee0df + 14421e8 commit d1c0523

File tree

7 files changed

+16
-8
lines changed

7 files changed

+16
-8
lines changed

app/api/chat/[graph]/route.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@ export async function POST(request: NextRequest, { params }: { params: { graph:
1313
headers: {
1414
"Authorization": process.env.SECRET_TOKEN!,
1515
"Content-Type": 'application/json'
16-
}
16+
},
17+
cache: 'no-store'
1718
})
1819

1920
if (!result.ok) {

app/api/repo/[graph]/[node]/route.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@ export async function POST(request: NextRequest, { params }: { params: { graph:
1818
repo: graphId,
1919
src: Number(nodeId),
2020
dest: Number(targetId!)
21-
})
21+
}),
22+
cache: 'no-store'
2223
})
2324

2425
if (!result.ok) {

app/api/repo/[graph]/commit/route.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@ export async function GET(request: NextRequest, { params }: { params: { graph: s
99
headers: {
1010
"Authorization": process.env.SECRET_TOKEN!,
1111
"Content-Type": 'application/json'
12-
}
12+
},
13+
cache: 'no-store'
1314
})
1415

1516
if (!result.ok) {

app/api/repo/[graph]/info/route.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@ export async function GET(request: NextRequest, { params }: { params: { graph: s
99
headers: {
1010
"Authorization": process.env.SECRET_TOKEN!,
1111
"Content-Type": 'application/json'
12-
}
12+
},
13+
cache: 'no-store'
1314
})
1415

1516
if (!result.ok) {

app/api/repo/[graph]/neighbors/route.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ export async function POST(request: NextRequest, { params }: { params: { graph:
1212
headers: {
1313
"Content-Type": 'application/json',
1414
"Authorization": process.env.SECRET_TOKEN!,
15-
}
15+
},
16+
cache: 'no-store'
1617
})
1718

1819
const json = await result.json()

app/api/repo/[graph]/route.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,8 @@ export async function POST(request: NextRequest, { params }: { params: { graph:
3939
headers: {
4040
"Authorization": process.env.SECRET_TOKEN!,
4141
"Content-Type": 'application/json'
42-
}
42+
},
43+
cache: 'no-store'
4344
})
4445

4546
if (!result.ok) {

app/api/repo/route.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@ export async function GET() {
66
method: 'GET',
77
headers: {
88
"Authorization": process.env.SECRET_TOKEN!,
9-
}
9+
},
10+
cache: 'no-store'
1011
})
1112

1213
if (!result.ok) {
@@ -32,7 +33,8 @@ export async function GET() {
3233
// headers: {
3334
// "Authorization": process.env.SECRET_TOKEN!,
3435
// 'Content-Type': 'application/json'
35-
// }
36+
// },
37+
// cache: 'no-store'
3638
// })
3739

3840
// if (!result.ok) {

0 commit comments

Comments
 (0)