Skip to content

Database governance built for humans and agents — controlling changes and access across every major database.

Use the OWNER id as the FAKE_API_CALLER_ID

天舟7c05abdc87ba
diff --git a/frontend/src/miragejs/fixtures/memberList.json b/frontend/src/miragejs/fixtures/memberList.json
index a4df00f3f5..12a9f88688 100644
--- a/frontend/src/miragejs/fixtures/memberList.json
+++ b/frontend/src/miragejs/fixtures/memberList.json
@@ -68,15 +68,5 @@
"createdTs": 1609603200000,
"role": "DEVELOPER",
"principalId": "6"
- },
- {
- "id": "8",
- "workspaceId": "1",
- "updaterId": "1",
- "updatedTs": 1609646400000,
- "creatorId": "1",
- "createdTs": 1609603200000,
- "role": "DBA",
- "principalId": "7"
}
]
diff --git a/frontend/src/miragejs/fixtures/userList.json b/frontend/src/miragejs/fixtures/userList.json
index 5215fda3de..ea3ce43925 100644
--- a/frontend/src/miragejs/fixtures/userList.json
+++ b/frontend/src/miragejs/fixtures/userList.json
@@ -64,16 +64,5 @@
"name": "Bob Invited",
"email": "[email protected]",
"passwordHash": "aaa"
- },
- {
- "id": "7",
- "updaterId": "1",
- "updatedTs": 1614571200000,
- "createdTs": 1614528000000,
- "creatorId": "1",
- "status": "ACTIVE",
- "name": "Fake API caller DBA",
- "email": "[email protected]",
- "passwordHash": "aaa"
}
]
diff --git a/frontend/src/miragejs/routes/index.js b/frontend/src/miragejs/routes/index.js
index b97992c837..8be5773b0c 100644
--- a/frontend/src/miragejs/routes/index.js
+++ b/frontend/src/miragejs/routes/index.js
@@ -18,8 +18,9 @@ import configureDataSource from "./dataSource";
export const WORKSPACE_ID = 1;
-// NOTE, in actual implementation, we need to fetch the user from the auth context.
-export const FAKE_API_CALLER_ID = 7;
+// TODO: Use the OWNER ID for now.
+// In actual implementation, we need to fetch the user from the auth context.
+export const FAKE_API_CALLER_ID = 1;
export default function routes() {
// Change this value to simulate response delay.