Merge pull request #1031 from hedgedoc/fix/forbiddenNoteId

AppConfig: Fix bug in the schema of forbiddenNoteIds
This commit is contained in:
David Mehren 2021-03-15 09:10:25 +01:00 committed by GitHub
commit fe5cd09678
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -24,7 +24,8 @@ const schema = Joi.object({
.default(Loglevel.WARN)
.optional()
.label('HD_LOGLEVEL'),
forbiddenNoteIds: Joi.string()
forbiddenNoteIds: Joi.array()
.items(Joi.string())
.optional()
.default([])
.label('HD_FORBIDDEN_NOTE_IDS'),