mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-03-19 07:20:00 +00:00
16 lines
388 B
TypeScript
16 lines
388 B
TypeScript
import { BaseRepository } from "./BaseRepository";
|
|
import { getRepository, Repository } from "typeorm";
|
|
import { Supporter } from "./entities/Supporter";
|
|
|
|
export class Supporters extends BaseRepository {
|
|
private supporters: Repository<Supporter>;
|
|
|
|
constructor() {
|
|
super();
|
|
this.supporters = getRepository(Supporter);
|
|
}
|
|
|
|
getAll() {
|
|
return this.supporters.find();
|
|
}
|
|
}
|