Skip to content

🤯 LobeHub - Super-Agents on Your Team. Add super-agents to the chats your team already uses.They take on work by themselves and get better every week.

338 B
Raw Blame
// Fixture: fan-out over a query result with Promise.all.
import { enrichTopic } from './enrich';
import { topicModel } from './model';

export const listEnrichedTopics = async (userId: string) => {
  const rows = await topicModel.findByUser(userId);

  // alint-expect
  return Promise.all(rows.map(async (row) => enrichTopic(row)));
};