mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-11-17 04:11:35 +00:00
8 lines
307 B
TypeScript
8 lines
307 B
TypeScript
export async function fetchRosterSourceData<T>(
|
|
fetchProfiles: () => Promise<T>,
|
|
fetchInstallId: () => Promise<string | undefined>
|
|
): Promise<{ body: T; installId: string | undefined }> {
|
|
const [body, installId] = await Promise.all([fetchProfiles(), fetchInstallId()])
|
|
|
|
return { body, installId }
|
|
}
|