| Conditions | 1 |
| Total Lines | 17 |
| Code Lines | 16 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | import {InjectRepository} from '@nestjs/typeorm'; |
||
| 32 | |||
| 33 | public findAll(): Promise<PayStub[]> { |
||
| 34 | return this.repository |
||
| 35 | .createQueryBuilder('payStub') |
||
| 36 | .select([ |
||
| 37 | 'payStub.id', |
||
| 38 | 'payStub.date', |
||
| 39 | 'user.id', |
||
| 40 | 'user.firstName', |
||
| 41 | 'user.lastName', |
||
| 42 | 'file.id', |
||
| 43 | 'file.name', |
||
| 44 | 'file.size' |
||
| 45 | ]) |
||
| 46 | .innerJoin('payStub.file', 'file') |
||
| 47 | .innerJoin('payStub.user', 'user') |
||
| 48 | .orderBy('payStub.date', 'DESC') |
||
| 49 | .getMany(); |
||
| 52 |