Vizzuality/landgriffon

View on GitHub
api/src/modules/unit-conversions/unit-conversion.repository.ts

Summary

Maintainability
A
1 hr
Test Coverage
A
100%
import { DataSource, Repository } from 'typeorm';
import { UnitConversion } from 'modules/unit-conversions/unit-conversion.entity';
import { Injectable } from '@nestjs/common';

@Injectable()
export class UnitConversionRepository extends Repository<UnitConversion> {
  constructor(private dataSource: DataSource) {
    super(UnitConversion, dataSource.createEntityManager());
  }
}