fix: config validation for discord is null

This commit is contained in:
diced 2022-10-22 14:26:34 -07:00
parent 1be61b8d89
commit dafde04c2c
No known key found for this signature in database
GPG key ID: 370BD1BA142842D1

View file

@ -1,5 +1,5 @@
import { Config } from 'lib/config/Config'; import { Config } from 'lib/config/Config';
import { CombinedError, s, ValidationError } from '@sapphire/shapeshift'; import { s } from '@sapphire/shapeshift';
import { inspect } from 'util'; import { inspect } from 'util';
import Logger from '../logger'; import Logger from '../logger';
@ -148,7 +148,7 @@ const validator = s.object({
), ),
upload: discord_content, upload: discord_content,
shorten: discord_content, shorten: discord_content,
}), }).nullish.default(null),
oauth: s oauth: s
.object({ .object({
github_client_id: s.string.nullable.default(null), github_client_id: s.string.nullable.default(null),