Passed
Pull Request — master (#56)
by
unknown
03:10 queued 01:29
created

IngestionRepository.save   A

Complexity

Conditions 1

Size

Total Lines 3
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 3
dl 0
loc 3
rs 10
c 0
b 0
f 0
1
import { Injectable } from '@nestjs/common';
2
import { Repository } from 'typeorm';
3
import { InjectRepository } from '@nestjs/typeorm';
4
import { IIngestionRepository } from 'src/Domain/Ingestion/Repository/IIngestionRepository';
5
import { Ingestion } from 'src/Domain/Ingestion/Ingestion.entity';
6
7
@Injectable()
8
export class IngestionRepository implements IIngestionRepository {
9
  constructor(
10
    @InjectRepository(Ingestion)
11
    private readonly repository: Repository<Ingestion>
12
  ) {}
13
14
  public save(ingestion: Ingestion): Promise<Ingestion> {
15
    return this.repository.save(ingestion);
16
  }
17
}
18