From 4436335f0857f4e44d81b143896bcf6d43c82a9f Mon Sep 17 00:00:00 2001 From: Michael Farrell Date: Thu, 19 Oct 2023 08:04:36 -0700 Subject: [PATCH] Fixes promptIds (#254) --- src/graphql/syncPromptGroups.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/graphql/syncPromptGroups.ts b/src/graphql/syncPromptGroups.ts index a4da53ad..96799be1 100644 --- a/src/graphql/syncPromptGroups.ts +++ b/src/graphql/syncPromptGroups.ts @@ -24,7 +24,7 @@ export async function createPromptGroup( /** Prompt group description */ description: string; /** Prompt IDs */ - prompts: string[]; + promptIds: string[]; }, ): Promise { const { @@ -115,7 +115,7 @@ export async function syncPromptGroups( async (prompt) => { await createPromptGroup(client, { ...prompt, - prompts: prompt.prompts.map((title) => { + promptIds: prompt.prompts.map((title) => { const prompt = promptByTitle[title]; if (!prompt) { throw new Error(`Failed to find prompt with title: "${title}"`);