| Conditions | 1 | 
| Total Lines | 8 | 
| Code Lines | 7 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Changes | 0 | ||
| 1 | import { Injectable, Inject } from '@nestjs/common'; | ||
| 18 | |||
| 19 |   public async generate(): Promise<string> { | ||
| 20 | const [ prefix, nbItem ] = await Promise.all([ | ||
| 21 |       this.configService.get<string>('ACCOUNTING_QUOTE_PREFIX'), | ||
| 22 | this.quoteRepository.countByYear(this.getCurrentYear()) | ||
| 23 | ]); | ||
| 24 | |||
| 25 | return this.format(prefix, nbItem); | ||
| 26 | } | ||
| 28 |