()
| 7 | const fs = require("fs"); |
| 8 | |
| 9 | const getEmptySubcategories = async () => { |
| 10 | const subcategoriesWithoutProducts = await db |
| 11 | .select() |
| 12 | .from(subcategories) |
| 13 | .leftJoin(products, eq(products.subcategory_slug, subcategories.slug)) |
| 14 | .where(isNull(products.subcategory_slug)); |
| 15 | |
| 16 | return subcategoriesWithoutProducts.map((s) => s.subcategories.slug); |
| 17 | }; |
| 18 | |
| 19 | function getRandomObjects(arr: any[], count: number) { |
| 20 | const result = []; |
nothing calls this directly
no outgoing calls
no test coverage detected