diff --git a/apps/web/process/hooks/init/get-initial-data.ts b/apps/web/process/hooks/init/get-initial-data.ts index fd72054..2162c3d 100644 --- a/apps/web/process/hooks/init/get-initial-data.ts +++ b/apps/web/process/hooks/init/get-initial-data.ts @@ -2,6 +2,7 @@ import type { User } from '@/api/user/types'; import { crmTools } from '@/graphql/crm.tools'; import * as CRMTypes from '@/graphql/crm.types'; import type { ApolloClient } from '@apollo/client'; +import dayjs from 'dayjs'; export async function getInitialData({ query }: ApolloClient, user: User) { const { @@ -31,10 +32,15 @@ export async function getInitialData({ query }: ApolloClient, user: User }, }); + const currentDate = dayjs().utc(false).toISOString(); let { data: { evo_baseproducts }, } = await query({ + fetchPolicy: 'network-only', query: CRMTypes.GetProductsDocument, + variables: { + currentDate, + }, }); const {