Skip to content

Commit

Permalink
feat(server): rebased migration files and resolved commits
Browse files Browse the repository at this point in the history
  • Loading branch information
akhilmhdh committed Mar 12, 2024
1 parent 47906c4 commit 0f0e2b3
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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: [
Expand Down
1 change: 1 addition & 0 deletions frontend/src/hooks/api/users/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ export type TWorkspaceUser = {
id: string;
user: {
email: string;
username: string;
firstName: string;
lastName: string;
id: string;
Expand Down

0 comments on commit 0f0e2b3

Please sign in to comment.