Remove DocumentPathOrigin from DbConfig and usages
DocumentPathOrigin property and all related code references have been removed from DbConfig, ConfigModel, and FinalizeDocumentJob. DocumentPath is now used exclusively for document path handling, simplifying configuration and reducing redundancy.
This commit is contained in:
@@ -16,7 +16,6 @@ public class ConfigModel(MSSQLServer Database, ILogger Logger)
|
|||||||
return new DbConfig
|
return new DbConfig
|
||||||
{
|
{
|
||||||
DocumentPath = row.ItemEx("DOCUMENT_PATH", string.Empty),
|
DocumentPath = row.ItemEx("DOCUMENT_PATH", string.Empty),
|
||||||
DocumentPathOrigin = row.ItemEx("DOCUMENT_PATH", string.Empty),
|
|
||||||
ExportPath = row.ItemEx("EXPORT_PATH", string.Empty),
|
ExportPath = row.ItemEx("EXPORT_PATH", string.Empty),
|
||||||
SendingProfile = row.ItemEx("SENDING_PROFILE", 0),
|
SendingProfile = row.ItemEx("SENDING_PROFILE", 0),
|
||||||
SignatureHost = row.ItemEx("SIGNATURE_HOST", string.Empty),
|
SignatureHost = row.ItemEx("SIGNATURE_HOST", string.Empty),
|
||||||
|
|||||||
@@ -3,7 +3,6 @@ namespace EnvelopeGenerator.ServiceHost.Jobs;
|
|||||||
public class DbConfig
|
public class DbConfig
|
||||||
{
|
{
|
||||||
public string ExternalProgramName { get; set; } = "signFLOW";
|
public string ExternalProgramName { get; set; } = "signFLOW";
|
||||||
public string DocumentPathOrigin { get; set; } = string.Empty;
|
|
||||||
public string DocumentPath { get; set; } = string.Empty;
|
public string DocumentPath { get; set; } = string.Empty;
|
||||||
public string ExportPath { get; set; } = string.Empty;
|
public string ExportPath { get; set; } = string.Empty;
|
||||||
public int SendingProfile { get; set; }
|
public int SendingProfile { get; set; }
|
||||||
|
|||||||
@@ -287,8 +287,8 @@ public class FinalizeDocumentJob(IOptions<WorkerOptions> options, IConfiguration
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
logger?.LogDebug("we got bytes..");
|
logger?.LogDebug("we got bytes..");
|
||||||
inputPath = _config!.DocumentPathOrigin;
|
inputPath = _config!.DocumentPath;
|
||||||
logger?.LogDebug("oInputPath: {0}", _config.DocumentPathOrigin);
|
logger?.LogDebug("oInputPath: {0}", _config.DocumentPath);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (envelopeData.DocAsByte is null)
|
if (envelopeData.DocAsByte is null)
|
||||||
|
|||||||
Reference in New Issue
Block a user