Skip to content

Commit 2d0b070

Browse files
committed
fix fields
1 parent 8b8982d commit 2d0b070

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

src/gemini/fdcExperience.ts

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,12 @@ import {
99
const AUTOPUSH_ORIGIN = "https://autopush-firebasedataconnect.sandbox.googleapis.com";
1010
const apiClient = new Client({ urlPrefix: AUTOPUSH_ORIGIN, auth: true });
1111

12+
export const PROMPT_GENERATE_CONNECTOR =
13+
"Create 4 operations for an app using the instance schema with proper authentication.";
14+
15+
export const PROMPT_GENERATE_SEED_DATA =
16+
"Create a mutation to populate the database with some seed data.";
17+
1218
/**
1319
* generateSchema generates a schema based on the users app design prompt.
1420
* @param prompt description of the app the user would like to generate.
@@ -102,7 +108,9 @@ async function readStream(stream: NodeJS.ReadableStream): Promise<string> {
102108
stream.on("end", () => {
103109
resolve(data);
104110
});
105-
stream.on("error", (reject));
111+
stream.on("error", (err) => {
112+
reject(err);
113+
});
106114
});
107115
}
108116

0 commit comments

Comments
 (0)