mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-05-16 22:55:03 +00:00
17 lines
436 B
TypeScript
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();
|
|
}
|
|
}
|