mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-20 10:15:17 -04:00
MediaService: Handle unexpected backend type
Signed-off-by: David Mehren <git@herrmehren.de>
This commit is contained in:
parent
22702b3390
commit
3b0bbe8b00
1 changed files with 4 additions and 0 deletions
|
@ -202,6 +202,10 @@ export class MediaService {
|
||||||
return BackendType.S3;
|
return BackendType.S3;
|
||||||
case 'webdav':
|
case 'webdav':
|
||||||
return BackendType.WEBDAV;
|
return BackendType.WEBDAV;
|
||||||
|
default:
|
||||||
|
throw new Error(
|
||||||
|
`Unexpected media backend ${this.mediaConfig.backend.use}`,
|
||||||
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue