Passed
Pull Request — master (#70)
by Mathieu
01:21
created

QuoteHistoryRepository   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 9
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 1
eloc 9
dl 0
loc 9
c 0
b 0
f 0
rs 10

1 Function

Rating   Name   Duplication   Size   Complexity  
A save 0 3 1
1
import {InjectRepository} from '@nestjs/typeorm';
2
import {Repository} from 'typeorm';
3
import {QuoteHistory} from 'src/Domain/Billing/QuoteHistory.entity';
4
import {IQuoteHistoryRepository} from 'src/Domain/Billing/Repository/IQuoteHistoryRepository';
5
6
export class QuoteHistoryRepository implements IQuoteHistoryRepository {
7
  constructor(
8
    @InjectRepository(QuoteHistory)
9
    private readonly repository: Repository<QuoteHistory>
10
  ) {}
11
12
  public save(quoteHistory: QuoteHistory): Promise<QuoteHistory> {
13
    return this.repository.save(quoteHistory);
14
  }
15
}
16