migrations; torr search, dl, seed, delete; files scan, delete; configs

This commit is contained in:
Jurgis Sakalauskas
2023-02-03 17:41:40 +02:00
parent 8d354027fc
commit daaeda539b
84 changed files with 5456 additions and 301 deletions
+17
View File
@@ -0,0 +1,17 @@
import { ConfigService } from './config.service';
export class RecentSearchesConfig {
constructor(private readonly configService: ConfigService) {
this.configService = configService;
}
public getRecentSearchesFolder(): string {
return this.configService
.getPaths()
.getPathByEnvKey('RECENT_SEARCHES_FOLDER');
}
public getRecentSearchesLimit(): number {
return parseInt(this.configService.getEnv('RECENT_SEARCHES_LIMIT'));
}
}