3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-05-16 22:55:03 +00:00
zeppelin/backend/src/data/Supporters.ts
2024-04-09 20:57:18 +03:00

17 lines
436 B
TypeScript

import { Repository } from "typeorm";
import { BaseRepository } from "./BaseRepository.js";
import { dataSource } from "./dataSource.js";
import { Supporter } from "./entities/Supporter.js";
export class Supporters extends BaseRepository {
private supporters: Repository<Supporter>;
constructor() {
super();
this.supporters = dataSource.getRepository(Supporter);
}
getAll() {
return this.supporters.find();
}
}