mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-06-04 08:49:59 -04:00
Fix various ESLint errors in configs
Signed-off-by: David Mehren <git@herrmehren.de>
This commit is contained in:
parent
616f963b8e
commit
208ff1d039
8 changed files with 25 additions and 19 deletions
|
@ -75,7 +75,7 @@ const mediaSchema = Joi.object({
|
|||
},
|
||||
});
|
||||
|
||||
export default registerAs('mediaConfig', async () => {
|
||||
export default registerAs('mediaConfig', () => {
|
||||
const mediaConfig = mediaSchema.validate(
|
||||
{
|
||||
backend: {
|
||||
|
@ -106,10 +106,10 @@ export default registerAs('mediaConfig', async () => {
|
|||
},
|
||||
);
|
||||
if (mediaConfig.error) {
|
||||
const errorMessages = await mediaConfig.error.details.map(
|
||||
const errorMessages = mediaConfig.error.details.map(
|
||||
(detail) => detail.message,
|
||||
);
|
||||
throw new Error(buildErrorMessage(errorMessages));
|
||||
}
|
||||
return mediaConfig.value;
|
||||
return mediaConfig.value as MediaConfig;
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue