| Conditions | 1 |
| Total Lines | 14 |
| Code Lines | 13 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | import { Injectable } from '@nestjs/common'; |
||
| 18 | |||
| 19 | public findOneById(id: string): Promise<Contact | undefined> { |
||
| 20 | return this.repository |
||
| 21 | .createQueryBuilder('contact') |
||
| 22 | .select([ |
||
| 23 | 'contact.id', |
||
| 24 | 'contact.firstName', |
||
| 25 | 'contact.lastName', |
||
| 26 | 'contact.company', |
||
| 27 | 'contact.email', |
||
| 28 | 'contact.phoneNumber', |
||
| 29 | 'contact.notes' |
||
| 30 | ]) |
||
| 31 | .where('contact.id = :id', { id }) |
||
| 32 | .getOne(); |
||
| 54 |