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 {
|
getBaseQueryCacheEnabled(): boolean {
|
||||||
return (
|
const enabled = this.configService
|
||||||
this.configService.get<string>('BASE_QUERY_CACHE_ENABLED', 'false') ===
|
.get<string>('BASE_QUERY_CACHE_ENABLED', 'false')
|
||||||
'true'
|
.toLowerCase();
|
||||||
);
|
return enabled === 'true';
|
||||||
}
|
}
|
||||||
|
|
||||||
getBaseQueryCacheMinRows(): number {
|
getBaseQueryCacheMinRows(): number {
|
||||||
|
|||||||
Reference in New Issue
Block a user