Skip to content

Commit

Permalink
module7-task1: fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
JIlyaS committed Nov 1, 2024
1 parent 4f78266 commit 60b279c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/shared/modules/offer/default-offer.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ export class DefaultOfferService implements OfferService {

// TODO: проверка на существование документа - предложения
public async exists(documentId: string): Promise<boolean> {
return this.offerModel.exists({_id: documentId}).then(r => !!r);
return this.offerModel.exists({_id: documentId}).then((r) => !!r);
}


Expand Down
2 changes: 1 addition & 1 deletion src/shared/modules/user/default-user.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export class DefaultUserService implements UserService {

// TODO: проверка на существование документа - предложения
public async exists(documentId: string): Promise<boolean> {
return this.userModel.exists({_id: documentId}).then(r => !!r);
return this.userModel.exists({_id: documentId}).then((r) => !!r);
}

public async findByEmail(email: string): Promise<DocumentType<UserEntity> | null> {
Expand Down

0 comments on commit 60b279c

Please sign in to comment.