Skip to content

Commit

Permalink
Fixes promptIds
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelfarrell76 committed Oct 19, 2023
1 parent b8cfb5b commit a5defc0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/graphql/syncPromptGroups.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export async function createPromptGroup(
/** Prompt group description */
description: string;
/** Prompt IDs */
prompts: string[];
promptIds: string[];
},
): Promise<string> {
const {
Expand Down Expand Up @@ -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}"`);
Expand Down

0 comments on commit a5defc0

Please sign in to comment.