Vizzuality/landgriffon

View on GitHub
api/src/modules/sourcing-location-groups/sourcing-location-group.repository.ts

Summary

Maintainability
A
1 hr
Test Coverage
A
100%
import { DataSource, Repository } from 'typeorm';
import { SourcingLocationGroup } from 'modules/sourcing-location-groups/sourcing-location-group.entity';
import { Injectable } from '@nestjs/common';

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