Total Complexity | 1 |
Complexity/F | 1 |
Lines of Code | 16 |
Function Count | 1 |
Duplicated Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | import {InjectRepository} from '@nestjs/typeorm'; |
||
2 | import {Repository} from 'typeorm'; |
||
3 | import {QuoteItem} from 'src/Domain/Billing/QuoteItem.entity'; |
||
4 | import {IQuoteItemRepository} from 'src/Domain/Billing/Repository/IQuoteItemRepository'; |
||
5 | |||
6 | export class QuoteItemRepository implements IQuoteItemRepository { |
||
7 | constructor( |
||
8 | @InjectRepository(QuoteItem) |
||
9 | private readonly repository: Repository<QuoteItem> |
||
10 | ) {} |
||
11 | |||
12 | public save(quoteItem: QuoteItem): Promise<QuoteItem> { |
||
13 | return this.repository.save(quoteItem); |
||
14 | } |
||
15 | } |
||
16 |