Explorar el Código

Update function name

arvid-e hace 2 meses
padre
commit
760cd9e5ea
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      apps/app/src/features/search/utils/disable-user-pages.ts

+ 1 - 1
apps/app/src/features/search/utils/disable-user-pages.ts

@@ -1,6 +1,6 @@
 import type { QueryTerms } from '~/server/interfaces/search';
 import type { QueryTerms } from '~/server/interfaces/search';
 
 
-export function applyUserExclusion(terms: QueryTerms): void {
+export function excludeUserPagesFromQuery(terms: QueryTerms): void {
   terms.prefix = terms.prefix.filter((p) => !p.startsWith('/user'));
   terms.prefix = terms.prefix.filter((p) => !p.startsWith('/user'));
   terms.not_prefix = terms.not_prefix.filter((p) => !p.startsWith('/user'));
   terms.not_prefix = terms.not_prefix.filter((p) => !p.startsWith('/user'));