Spaces:
Paused
Paused
fix: community tool popup shows the number of featured tools
Browse files
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({
|
|
|
|
|
|
|
|
|
|
| 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) => ({
|