Skip to content

Commit 15deb8a

Browse files
committed
fix: build 에러 수정
1 parent e0c2dd5 commit 15deb8a

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

apps/backend/src/workspace/workspace.controller.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,7 @@ export class WorkspaceController {
175175
async makeWorkspacePublic(@Request() req, @Param('id') id: string) {
176176
const userId = req.user.sub; // 인증된 사용자 ID
177177
await this.workspaceService.updateVisibility(userId, id, 'public');
178+
178179
return { message: WorkspaceResponseMessage.WORKSPACE_UPDATED_TO_PUBLIC };
179180
}
180181

@@ -190,6 +191,7 @@ export class WorkspaceController {
190191
async makeWorkspacePrivate(@Request() req, @Param('id') id: string) {
191192
const userId = req.user.sub; // 인증된 사용자 ID
192193
await this.workspaceService.updateVisibility(userId, id, 'private');
194+
193195
return { message: WorkspaceResponseMessage.WORKSPACE_UPDATED_TO_PRIVATE };
194196
}
195197
}

apps/backend/src/workspace/workspace.service.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -205,6 +205,7 @@ export class WorkspaceService {
205205

206206
if (!user) {
207207
throw new UserNotFoundException();
208+
}
208209

209210
// workspace와 user에 대한 role 확인
210211
const role = await this.roleRepository.findOne({
@@ -226,6 +227,7 @@ export class WorkspaceService {
226227
};
227228
}
228229

230+
229231
/**
230232
* 가장 처음에 모두가 접속할 수 있는 main workspace를 생성한다.
231233
*/
@@ -282,9 +284,9 @@ export class WorkspaceService {
282284
workspace: findWorkspace,
283285
user: findOwner,
284286
role: 'owner',
285-
});
287+
});}
286288
}
287-
}
289+
288290

289291
async updateVisibility(
290292
userId: number,

0 commit comments

Comments
 (0)