mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-05-10 12:25:02 +00:00
refactor: change LogType to a plain object instead of an enum
This commit is contained in:
parent
cbec80981d
commit
82d720d308
5 changed files with 97 additions and 116 deletions
|
@ -27,6 +27,12 @@ export class Configs extends BaseRepository {
|
|||
this.configs = dataSource.getRepository(Config);
|
||||
}
|
||||
|
||||
getActive() {
|
||||
return this.configs.find({
|
||||
where: { is_active: true },
|
||||
});
|
||||
}
|
||||
|
||||
getActiveByKey(key) {
|
||||
return this.configs.findOne({
|
||||
where: {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue