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 b93f01fe57
commit dc7d8ab470
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}`,
);
}
}