small fixes

master
Tudor Stanciu 2020-12-23 01:43:12 +02:00
parent 419744d036
commit a7fdbe502b
2 changed files with 6 additions and 2 deletions

View File

@ -37,8 +37,8 @@ namespace NetworkResurrector.Agent.Application.Queries
public async Task<Model[]> Handle(Query request, CancellationToken cancellationToken) public async Task<Model[]> Handle(Query request, CancellationToken cancellationToken)
{ {
var bots = await _repository.GetMachines(); var machines = await _repository.GetMachines();
var result = _mapper.Map<Model[]>(bots); var result = _mapper.Map<Model[]>(machines);
return result; return result;
} }

View File

@ -9,6 +9,7 @@ using Microsoft.Extensions.Hosting;
using NDB.Extensions.Swagger; using NDB.Extensions.Swagger;
using NDB.Security.Authentication.Identity; using NDB.Security.Authentication.Identity;
using NetworkResurrector.Agent.Application; using NetworkResurrector.Agent.Application;
using NetworkResurrector.Agent.Domain.Data;
using Newtonsoft.Json; using Newtonsoft.Json;
using System.Reflection; using System.Reflection;
@ -44,6 +45,9 @@ namespace NetworkResurrector.Agent
// Swagger // Swagger
services.AddSwagger("NetworkResurrectorAgent API"); services.AddSwagger("NetworkResurrectorAgent API");
// Data access
services.AddDataAccess();
// Application // Application
services.AddApplicationServices(); services.AddApplicationServices();
} }