nsarrazin HF Staff commited on
Commit
eb4ddb7
·
1 Parent(s): 2d394d3

fix: community tool popup shows the number of featured tools

Browse files
Files changed (1) hide show
  1. src/routes/+layout.server.ts +4 -1
src/routes/+layout.server.ts CHANGED
@@ -219,7 +219,10 @@ export const load: LayoutServerLoad = async ({ locals, depends, request }) => {
219
  )?.value ?? 15_000,
220
  } satisfies ToolFront)
221
  ),
222
- communityToolCount: await collections.tools.countDocuments({ type: "community" }),
 
 
 
223
  assistants: assistants
224
  .filter((el) => userAssistantsSet.has(el._id.toString()))
225
  .map((el) => ({
 
219
  )?.value ?? 15_000,
220
  } satisfies ToolFront)
221
  ),
222
+ communityToolCount: await collections.tools.countDocuments({
223
+ type: "community",
224
+ featured: true,
225
+ }),
226
  assistants: assistants
227
  .filter((el) => userAssistantsSet.has(el._id.toString()))
228
  .map((el) => ({