no store for jobs fetch
All checks were successful
Vercel Production Deployment / Deploy-Production (push) Successful in 1m44s
All checks were successful
Vercel Production Deployment / Deploy-Production (push) Successful in 1m44s
This commit is contained in:
parent
ec7896ea8c
commit
0fb22f5647
@ -21,7 +21,9 @@ interface JobPosting {
|
|||||||
}
|
}
|
||||||
|
|
||||||
async function fetchJobs(): Promise<JobPosting[]> {
|
async function fetchJobs(): Promise<JobPosting[]> {
|
||||||
const response = await fetch("http://51.20.250.24/jobs/itjobbank");
|
const response = await fetch("http://51.20.250.24/jobs/itjobbank", {
|
||||||
|
cache: "no-store",
|
||||||
|
});
|
||||||
if (!response.ok) {
|
if (!response.ok) {
|
||||||
throw new Error("Failed to fetch jobs");
|
throw new Error("Failed to fetch jobs");
|
||||||
}
|
}
|
||||||
|
@ -21,7 +21,9 @@ interface JobPosting {
|
|||||||
}
|
}
|
||||||
|
|
||||||
async function fetchJobs(): Promise<JobPosting[]> {
|
async function fetchJobs(): Promise<JobPosting[]> {
|
||||||
const response = await fetch("http://51.20.250.24/jobs/hub");
|
const response = await fetch("http://51.20.250.24/jobs/hub", {
|
||||||
|
cache: "no-store",
|
||||||
|
});
|
||||||
if (!response.ok) {
|
if (!response.ok) {
|
||||||
throw new Error("Failed to fetch jobs");
|
throw new Error("Failed to fetch jobs");
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user