Dashboard work and related
This commit is contained in:
parent
7bda2b1763
commit
b230a73a6f
44 changed files with 637 additions and 272 deletions
|
@ -1,21 +0,0 @@
|
|||
import { getRepository, Repository } from "typeorm";
|
||||
import { DashboardUser } from "./entities/DashboardUser";
|
||||
import { BaseRepository } from "./BaseRepository";
|
||||
|
||||
export class DashboardUsers extends BaseRepository {
|
||||
private dashboardUsers: Repository<DashboardUser>;
|
||||
|
||||
constructor() {
|
||||
super();
|
||||
this.dashboardUsers = getRepository(DashboardUser);
|
||||
}
|
||||
|
||||
getByGuildAndUserId(guildId, userId) {
|
||||
return this.dashboardUsers.findOne({
|
||||
where: {
|
||||
guild_id: guildId,
|
||||
user_id: userId,
|
||||
},
|
||||
});
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue