Skip to content

Commit 566a423

Browse files
update database part
1 parent 50b51f1 commit 566a423

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

sql-editor/src/app/api/utils.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -211,6 +211,7 @@ export async function createBBIssueWorkflow(project: string) {
211211
console.log("--------- createdRollout ----------", rolloutData);
212212
return {
213213
success: true,
214+
database: project
214215
};
215216
} catch (error) {
216217
console.error("Error in createIssueWorkflow:", error);

sql-editor/src/app/page.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ interface Project {
1818
interface UserData {
1919
credentials: Credentials;
2020
project: Project;
21+
database: string;
2122
}
2223

2324
export default function Home() {
@@ -34,7 +35,8 @@ export default function Home() {
3435
const data = await response.json();
3536
setUserData({
3637
credentials: data.credentials,
37-
project: data.project
38+
project: data.project,
39+
database: data.database.database
3840
});
3941
} else {
4042
throw new Error('Failed to create user');
@@ -71,7 +73,7 @@ export default function Home() {
7173
<p><strong>Password:</strong> {userData.credentials.password}</p>
7274
<p><strong>Project Title:</strong> {userData.project.title}</p>
7375
<p><strong>Project Key:</strong> {userData.project.key}</p>
74-
<p><strong>Database:</strong> {userData.project.key}</p>
76+
<p><strong>Database:</strong> {userData.database}</p>
7577
</div>
7678
<p className="mt-4 mb-4 text-sm text-gray-600">Please save these credentials and project details for future use.</p>
7779
<div className="w-full h-screen border border-gray-300 rounded-lg overflow-hidden">

0 commit comments

Comments
 (0)