fix: config validation for discord is null
This commit is contained in:
parent
1be61b8d89
commit
dafde04c2c
1 changed files with 2 additions and 2 deletions
|
@ -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),
|
||||||
|
|
Loading…
Reference in a new issue