From b96240c3fe057ea6031b897aa425ef7880ba5a3b Mon Sep 17 00:00:00 2001 From: Patryk Omiotek Date: Sun, 4 Feb 2024 21:03:17 +0100 Subject: [PATCH] feat: info about next cache --- apps/jobboard/src/services/offers.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/apps/jobboard/src/services/offers.ts b/apps/jobboard/src/services/offers.ts index b45b046..eefc5f1 100644 --- a/apps/jobboard/src/services/offers.ts +++ b/apps/jobboard/src/services/offers.ts @@ -1,5 +1,6 @@ import { JobOffer } from '@prisma/client'; import db from '@jobboard/prisma-client'; +import { unstable_noStore as noStore } from 'next/cache'; export const fetchJobOffers = async (query: string | null) => { const whereQuery = query @@ -33,5 +34,6 @@ const wait = async (ms: number) => export const fetchOffersCount = async () => { await wait(5000); + // noStore(); -- omit data store return db.jobOffer.count(); };