This commit is contained in:
Sreeram Sreedhar 2026-04-20 16:18:47 -07:00
parent 1a63b97f3a
commit c82ff04c53

View file

@ -38,7 +38,8 @@ export const getSearchCache = query({
if (!cached || cached.expiresAt < now) {
return null
}
if (args.searchMode && cached.searchMode !== args.searchMode) {
const effectiveMode = args.searchMode || "hybrid"
if (cached.searchMode !== effectiveMode) {
return null
}