Skip to content

Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.

feat(server): rebased migration files and resolved commits

Akhil Mohan0f0e2b360cef
diff --git a/backend/src/db/migrations/20240308154949_temp-roles.ts b/backend/src/db/migrations/20240312162549_temp-roles.ts
similarity index 100%
rename from backend/src/db/migrations/20240308154949_temp-roles.ts
rename to backend/src/db/migrations/20240312162549_temp-roles.ts
diff --git a/backend/src/db/migrations/20240311093939_temp-role-identity.ts b/backend/src/db/migrations/20240312162556_temp-role-identity.ts
similarity index 100%
rename from backend/src/db/migrations/20240311093939_temp-role-identity.ts
rename to backend/src/db/migrations/20240312162556_temp-role-identity.ts
diff --git a/backend/src/services/project-membership/project-membership-dal.ts b/backend/src/services/project-membership/project-membership-dal.ts
index b3a2d52dcc..8faab487e8 100644
--- a/backend/src/services/project-membership/project-membership-dal.ts
+++ b/backend/src/services/project-membership/project-membership-dal.ts
@@ -53,11 +53,11 @@ export const projectMembershipDALFactory = (db: TDbClient) => {
const members = sqlNestRelationships({
data: docs,
- parentMapper: ({ email, firstName, lastName, publicKey, isGhost, id, userId }) => ({
+ parentMapper: ({ email, firstName, username, lastName, publicKey, isGhost, id, userId }) => ({
id,
userId,
projectId,
- user: { email, firstName, lastName, id: userId, publicKey, isGhost }
+ user: { email, username, firstName, lastName, id: userId, publicKey, isGhost }
}),
key: "id",
childrenMapper: [
diff --git a/frontend/src/hooks/api/users/types.ts b/frontend/src/hooks/api/users/types.ts
index 540ade9c1e..edc3bdf9e1 100644
--- a/frontend/src/hooks/api/users/types.ts
+++ b/frontend/src/hooks/api/users/types.ts
@@ -68,6 +68,7 @@ export type TWorkspaceUser = {
id: string;
user: {
email: string;
+ username: string;
firstName: string;
lastName: string;
id: string;