Passed
Pull Request — master (#165)
by Mathieu
03:20 queued 01:35
created

server/src/Infrastructure/Accounting/Repository/BillingItemRepository.ts   A

Complexity

Total Complexity 1
Complexity/F 1

Size

Lines of Code 16
Function Count 1

Duplication

Duplicated Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 13
dl 0
loc 16
rs 10
c 0
b 0
f 0
wmc 1
mnd 0
bc 0
fnc 1
bpm 0
cpm 1
noi 0

1 Function

Rating   Name   Duplication   Size   Complexity  
A BillingItemRepository.save 0 3 1
1
import { InjectRepository } from '@nestjs/typeorm';
2
import { Repository } from 'typeorm';
3
import { BillingItem } from 'src/Domain/Accounting/BillingItem.entity';
4
import { IBillingItemRepository } from 'src/Domain/Accounting/Repository/IBillingItemRepository';
5
6
export class BillingItemRepository implements IBillingItemRepository {
7
  constructor(
8
    @InjectRepository(BillingItem)
9
    private readonly repository: Repository<BillingItem>
10
  ) {}
11
12
  public save(items: BillingItem[]): void {
13
    this.repository.save(items);
14
  }
15
}
16