Merge pull request #1171 from hedgedoc/fix/mockLoglevel

AppConfigMock: Use correct loglevel
This commit is contained in:
Yannick Bungers 2021-04-22 22:44:29 +02:00 committed by GitHub
commit 18dafc35f4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -5,13 +5,13 @@
*/ */
import { registerAs } from '@nestjs/config'; import { registerAs } from '@nestjs/config';
import { LogLevel } from 'ts-loader/dist/logger'; import { Loglevel } from '../loglevel.enum';
export default registerAs('appConfig', () => ({ export default registerAs('appConfig', () => ({
domain: 'md.example.com', domain: 'md.example.com',
rendererOrigin: 'md-renderer.example.com', rendererOrigin: 'md-renderer.example.com',
port: 3000, port: 3000,
loglevel: LogLevel.ERROR, loglevel: Loglevel.ERROR,
maxDocumentLength: 100000, maxDocumentLength: 100000,
forbiddenNoteIds: ['forbiddenNoteId'], forbiddenNoteIds: ['forbiddenNoteId'],
})); }));