feat(api, nextRun): записывать в историю template инициатора

This commit is contained in:
Mikhail Trubnikov
2024-10-08 16:37:58 +10:00
parent 7155156f66
commit 5e0c249f1b
2 changed files with 4 additions and 2 deletions

View File

@@ -8,6 +8,7 @@ using PARR.API.Contracts.V1.Responses;
using PARR.API.Contracts.V1.Responses.Base;
using PARR.API.Controllers.V1.Base;
using PARR.API.Services.Interfaces;
using PARR.Common.Domain;
using PARR.Constants;
using PARR.DAL.Contracts;
using PARR.DAL.Models;
@@ -182,7 +183,7 @@ namespace PARR.API.Controllers.V1
template.NextRun = nextRun;
await robotConfigurationService.CommitAsync();
await robotConfigurationService.CommitAsync(new HistoryInitiator { InitiatorComment = "При получении задания роботом, обновил NextRun", InitiatorIp = clientService.GetClientIp()?.ToString(), InitiatorParrComponentId = ParrComponentsEnum.Api });
}
#region Old, до выноса lastRun, nextRun в templates