small fixes
parent
419744d036
commit
a7fdbe502b
|
@ -37,8 +37,8 @@ namespace NetworkResurrector.Agent.Application.Queries
|
|||
|
||||
public async Task<Model[]> Handle(Query request, CancellationToken cancellationToken)
|
||||
{
|
||||
var bots = await _repository.GetMachines();
|
||||
var result = _mapper.Map<Model[]>(bots);
|
||||
var machines = await _repository.GetMachines();
|
||||
var result = _mapper.Map<Model[]>(machines);
|
||||
|
||||
return result;
|
||||
}
|
||||
|
|
|
@ -9,6 +9,7 @@ using Microsoft.Extensions.Hosting;
|
|||
using NDB.Extensions.Swagger;
|
||||
using NDB.Security.Authentication.Identity;
|
||||
using NetworkResurrector.Agent.Application;
|
||||
using NetworkResurrector.Agent.Domain.Data;
|
||||
using Newtonsoft.Json;
|
||||
using System.Reflection;
|
||||
|
||||
|
@ -44,6 +45,9 @@ namespace NetworkResurrector.Agent
|
|||
// Swagger
|
||||
services.AddSwagger("NetworkResurrectorAgent API");
|
||||
|
||||
// Data access
|
||||
services.AddDataAccess();
|
||||
|
||||
// Application
|
||||
services.AddApplicationServices();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue