Extend config with various options from 1.x

Signed-off-by: Philip Molares <philip.molares@udo.edu>
This commit is contained in:
Philip Molares 2020-12-31 22:37:37 +01:00 committed by David Mehren
parent ce65f2c51a
commit 929795637a
No known key found for this signature in database
GPG key ID: 185982BA4C42B7C3
13 changed files with 686 additions and 32 deletions

View file

@ -5,7 +5,7 @@
*/
export enum BackendType {
FILEYSTEM = 'filesystem',
FILESYSTEM = 'filesystem',
S3 = 's3',
IMGUR = 'imgur',
AZURE = 'azure',

View file

@ -122,13 +122,13 @@ export class MediaService {
private chooseBackendType(): BackendType {
switch (this.appConfig.media.backend.use) {
case 'filesystem':
return BackendType.FILEYSTEM;
return BackendType.FILESYSTEM;
}
}
private getBackendFromType(type: BackendType): MediaBackend {
switch (type) {
case BackendType.FILEYSTEM:
case BackendType.FILESYSTEM:
return this.moduleRef.get(FilesystemBackend);
}
}