feat(server): rebased migration files and resolved commits

This commit is contained in:
Akhil Mohan
2024-03-12 21:57:45 +05:30
parent 47906c4dd4
commit 0f0e2b360c
4 changed files with 3 additions and 2 deletions

View File

@@ -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: [

View File

@@ -68,6 +68,7 @@ export type TWorkspaceUser = {
id: string;
user: {
email: string;
username: string;
firstName: string;
lastName: string;
id: string;