fix(): caching better identify default provider (#13675)

This commit is contained in:
Adrien de Peretti
2025-10-03 21:04:27 +02:00
committed by GitHub
parent 80371a4344
commit 62d340b897
2 changed files with 6 additions and 3 deletions

View File

@@ -0,0 +1,5 @@
---
"@medusajs/caching": patch
---
fix(): caching better identify default provider

View File

@@ -84,9 +84,7 @@ export default async ({
let hasDefaultProvider = false
for (const provider of options?.providers || []) {
if (provider.is_default || isSingleProvider) {
if (provider.is_default) {
hasDefaultProvider = true
}
hasDefaultProvider = true
container.register(CachingDefaultProvider, asValue(provider.id))
}
}