const [glossaries, prompts] = [await getGlossaries(), await getPromps()];
// instead of
// const [glossaries, prompts] = await Promise.all([getGlossaries(), getPrompts()]);
When I was writing the code, I thought for a moment that getGlossaries() and getPrompts() will be executed in parallel