3
0
Fork 0
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:
Dragory 2024-01-15 22:37:39 +00:00
parent cbec80981d
commit 82d720d308
No known key found for this signature in database
5 changed files with 97 additions and 116 deletions

View file

@ -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: {