mirror of
https://github.com/SyncrowIOT/backend.git
synced 2025-08-25 21:19:40 +00:00
11 lines
341 B
TypeScript
11 lines
341 B
TypeScript
import { DataSource, Repository } from 'typeorm';
|
|
import { Injectable } from '@nestjs/common';
|
|
import { TimerEntity } from '../entities/timer.entity';
|
|
|
|
@Injectable()
|
|
export class TimerRepository extends Repository<TimerEntity> {
|
|
constructor(private dataSource: DataSource) {
|
|
super(TimerEntity, dataSource.createEntityManager());
|
|
}
|
|
}
|