Conditions | 1 |
Total Lines | 11 |
Code Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | import { Injectable } from '@nestjs/common'; |
||
32 | |||
33 | public findOneById(id: string): Promise<Shooting | undefined> { |
||
34 | return this.repository |
||
35 | .createQueryBuilder('shooting') |
||
36 | .select([ |
||
37 | 'shooting.name', |
||
38 | 'shooting.status', |
||
39 | 'shooting.shootingDate', |
||
40 | 'shooting.closingDate' |
||
41 | ]) |
||
42 | .where('shooting.id = :id', { id }) |
||
43 | .getOne(); |
||
54 |