3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-05-16 06:35:03 +00:00
zeppelin/backend/src/data/Supporters.ts

16 lines
388 B
TypeScript

import { getRepository, Repository } from "typeorm";
import { BaseRepository } from "./BaseRepository";
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();
}
}