EmailDispatcher ist integriert.
This commit is contained in:
@@ -60,7 +60,7 @@ namespace EnvelopeGenerator.Web.Services
|
||||
_logger.LogInformation("Resolved receiver signature to receiverId [{0}]", receiverId);
|
||||
|
||||
_logger.LogInformation("Loading envelope..");
|
||||
Envelope? envelope = envelopeModel.GetByUuid(envelopeUuid);
|
||||
Envelope? envelope = envelopeModel.GetByUuid(envelopeUuid);
|
||||
|
||||
if (envelope == null)
|
||||
{
|
||||
@@ -96,22 +96,14 @@ namespace EnvelopeGenerator.Web.Services
|
||||
}).ToList();
|
||||
|
||||
//if documenet_path_dmz is existing in config, replace the path with it
|
||||
var configResult = await _configService.ReadDefaultAsync();
|
||||
if (configResult.IsSuccess && configResult.Data is not null)
|
||||
{
|
||||
var config = configResult.Data;
|
||||
var config = await _configService.ReadDefaultAsync();
|
||||
|
||||
if (config.DocumentPathDmz is not null && config.DocumentPathDmz != string.Empty)
|
||||
foreach (var doc in envelope.Documents)
|
||||
{
|
||||
doc.Filepath = doc.Filepath.Replace(config.DocumentPath, config.DocumentPathDmz);
|
||||
}
|
||||
|
||||
if(config.DocumentPathDmz is not null && config.DocumentPathDmz != string.Empty)
|
||||
foreach(var doc in envelope.Documents)
|
||||
{
|
||||
doc.Filepath = doc.Filepath.Replace(config.DocumentPath , config.DocumentPathDmz);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
_logger.LogError(string.Join(". ", configResult.Messages));
|
||||
throw new InvalidOperationException(String.Join(". ", configResult.Messages));
|
||||
}
|
||||
|
||||
return new()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user