Vizzuality/landgriffon

View on GitHub
api/src/modules/scenarios/scenario.repository.ts

Summary

Maintainability
A
1 hr
Test Coverage
A
100%
import { DataSource, Repository } from 'typeorm';
import { Scenario } from 'modules/scenarios/scenario.entity';
import { Injectable } from '@nestjs/common';

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