🐛 Throw exception on S3 writing error (#358)
This commit is contained in:
@@ -25,7 +25,7 @@ export default class S3ConnectorService implements StorageConnectorAPI {
|
||||
|
||||
write(path: string, stream: Readable): Promise<WriteMetadata> {
|
||||
let totalSize = 0;
|
||||
return new Promise(resolve => {
|
||||
return new Promise((resolve, reject) => {
|
||||
stream
|
||||
.on("data", function (chunk) {
|
||||
totalSize += chunk.length;
|
||||
@@ -36,7 +36,7 @@ export default class S3ConnectorService implements StorageConnectorAPI {
|
||||
});
|
||||
});
|
||||
|
||||
this.client.putObject(this.minioConfiguration.bucket, path, stream);
|
||||
this.client.putObject(this.minioConfiguration.bucket, path, stream).catch(e => reject(e));
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
@@ -53,7 +53,7 @@ export default class OIDCAuthProviderService
|
||||
redirect_uri: getAsFrontUrl(OIDC_CALLBACK_URL),
|
||||
response_type: 'code',
|
||||
response_mode: 'query',
|
||||
scope: 'openid profile email address phone offline_access',
|
||||
scope: 'openid profile email address phone offline_access applications',
|
||||
post_logout_redirect_uri: getAsFrontUrl(OIDC_SIGNOUT_URL),
|
||||
silent_redirect_uri: getAsFrontUrl(OIDC_SILENT_URL),
|
||||
automaticSilentRenew: false,
|
||||
|
||||
Reference in New Issue
Block a user