mirror of
https://github.com/docmost/docmost.git
synced 2026-05-07 06:23:06 +08:00
fix(server): case-insensitive parse for BASE_QUERY_CACHE_ENABLED env var
This commit is contained in:
@@ -306,10 +306,10 @@ export class EnvironmentService {
|
||||
}
|
||||
|
||||
getBaseQueryCacheEnabled(): boolean {
|
||||
return (
|
||||
this.configService.get<string>('BASE_QUERY_CACHE_ENABLED', 'false') ===
|
||||
'true'
|
||||
);
|
||||
const enabled = this.configService
|
||||
.get<string>('BASE_QUERY_CACHE_ENABLED', 'false')
|
||||
.toLowerCase();
|
||||
return enabled === 'true';
|
||||
}
|
||||
|
||||
getBaseQueryCacheMinRows(): number {
|
||||
|
||||
Reference in New Issue
Block a user