PARR.EsppTemplateSyncWorker small fix
This commit is contained in:
@@ -34,7 +34,6 @@ namespace PARR.EsppTemplateSync.Services
|
||||
{
|
||||
//TODO: а если формат нет тот? Все будет ок?
|
||||
|
||||
//TODO:
|
||||
var splittedContent = str.Split(globalSettings.ParsingSeparator);
|
||||
if (splittedContent.Length != 17)
|
||||
{
|
||||
@@ -61,35 +60,15 @@ namespace PARR.EsppTemplateSync.Services
|
||||
var work = splittedContent[15].Trim();
|
||||
var worker = splittedContent[16].Trim();
|
||||
|
||||
//logger.LogInformation($"Получено сообщение: {ek}");
|
||||
var template = new Template
|
||||
{
|
||||
Id = Guid.NewGuid(),
|
||||
DateCreated = DateTime.UtcNow,
|
||||
Name = name,
|
||||
IsActive = bool.Parse(isActive),
|
||||
//WorkGroup = workGroup,
|
||||
//ShortDescription = shortDescription,
|
||||
//Category = category,
|
||||
//ResponseArea = responseArea,
|
||||
//Duration = duration,
|
||||
//EK = ek,
|
||||
//Initiator = initiator,
|
||||
//FullDescription = fullDescription,
|
||||
//ClosingCode = closingCode,
|
||||
//Solution = solution,
|
||||
//Process = process,
|
||||
//SubProcess = subProcess,
|
||||
//TNK = tnk,
|
||||
//Work = work,
|
||||
//Worker = worker,
|
||||
//Status = "Checking"
|
||||
StatusCode = (int)StatusTemplateEnum.Ok
|
||||
};
|
||||
|
||||
//bool isSuccess = true;
|
||||
|
||||
|
||||
return template;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user