diff --git a/common/categories.ts b/common/categories.ts index 12788f53..9d290d66 100644 --- a/common/categories.ts +++ b/common/categories.ts @@ -1,21 +1,17 @@ export const CATEGORIES = { politics: 'Politics', technology: 'Technology', - sports: 'Sports', - gaming: 'Gaming', - manifold: 'Manifold', science: 'Science', world: 'World', - fun: 'Fun', - personal: 'Personal', + sports: 'Sports', economics: 'Economics', + personal: 'Personal', + culture: 'Culture', + manifold: 'Manifold', + covid: 'Covid', crypto: 'Crypto', - health: 'Health', - // entertainment: 'Entertainment', - // society: 'Society', - // friends: 'Friends / Community', - // business: 'Business', - // charity: 'Charities / Non-profits', + gaming: 'Gaming', + fun: 'Fun', } as { [category: string]: string } export const TO_CATEGORY = Object.fromEntries( diff --git a/functions/src/update-feed.ts b/functions/src/update-feed.ts index 44a39e61..3c497b1f 100644 --- a/functions/src/update-feed.ts +++ b/functions/src/update-feed.ts @@ -35,11 +35,10 @@ const getUserBatches = async () => { for (let i = 0; i < users.length; i += BATCH_SIZE) { userBatches.push(users.slice(i, i + BATCH_SIZE)) } - userBatches = userBatches.slice(0, MAX_BATCHES) - console.log('updating feed batches', userBatches.length, 'of', MAX_BATCHES) + console.log('updating feed batches', MAX_BATCHES, 'of', userBatches.length) - return userBatches + return userBatches.slice(0, MAX_BATCHES) } export const updateFeed = functions.pubsub