Skip to content

Commit

Permalink
delete 3 lines of code
Browse files Browse the repository at this point in the history
  • Loading branch information
WojciechGrancow committed Nov 8, 2023
1 parent 799d78f commit 051162a
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions apps/server/src/modules/deletion/uc/deletion-request.uc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -215,10 +215,6 @@ export class DeletionRequestUc {
private async removeUserFromRocketChat(deletionRequest: DeletionRequest): Promise<number> {
const rocketChatUser = await this.rocketChatUserService.findByUserId(deletionRequest.targetRefId);

if (!rocketChatUser) {
return 0;
}

const [, rocketChatUserDeleted] = await Promise.all([
this.rocketChatService.deleteUser(rocketChatUser.username),
this.rocketChatUserService.deleteByUserId(rocketChatUser.userId),
Expand Down

0 comments on commit 051162a

Please sign in to comment.