feat(MED-97): show person name instead of keycloak email in company invite form

This commit is contained in:
2025-09-26 13:26:02 +03:00
parent beeea33842
commit fdc2e3e064
5 changed files with 10 additions and 10 deletions

View File

@@ -6,7 +6,7 @@ import { HttpTypes } from '@medusajs/types';
import { getAuthHeaders, getCacheOptions } from './cookies';
export const retrieveOrder = async (id: string) => {
export const retrieveOrder = async (id: string, allowCache = true) => {
const headers = {
...(await getAuthHeaders()),
};
@@ -24,7 +24,7 @@ export const retrieveOrder = async (id: string) => {
},
headers,
next,
cache: 'force-cache',
...(allowCache ? { cache: 'force-cache' } : {}),
})
.then(({ order }) => order)
.catch((err) => medusaError(err));