Skip to content

armgit / mimik

Public Imported from GitHub
0

🎬 A browser extension and desktop app that turns your clicks into step-by-step guides with annotated screenshots πŸ“–

408 B
Raw Blame
import { clearStepAiPending, getStepsForGuide } from '@/core/guides/service';
import { drainDescriptions } from './description-queue';

export async function settleDescriptions(guideId: string): Promise<void> {
  await drainDescriptions(guideId);
  const pending = (await getStepsForGuide(guideId)).filter((step) => step.aiPending);
  await Promise.all(pending.map((step) => clearStepAiPending(step.id)));
}