MediaService: Handle unexpected backend type

Signed-off-by: David Mehren <git@herrmehren.de>
This commit is contained in:
David Mehren 2021-04-29 16:59:18 +02:00
parent 22702b3390
commit 3b0bbe8b00
No known key found for this signature in database
GPG key ID: 185982BA4C42B7C3

View file

@ -202,6 +202,10 @@ export class MediaService {
return BackendType.S3;
case 'webdav':
return BackendType.WEBDAV;
default:
throw new Error(
`Unexpected media backend ${this.mediaConfig.backend.use}`,
);
}
}