mapping fix

master
Tudor Stanciu 2020-06-07 04:10:46 +03:00
parent b8840707db
commit 9ce8ba06f6
2 changed files with 3 additions and 1 deletions

View File

@ -43,7 +43,7 @@ namespace Chatbot.Api
.MinimumLevel.Override("Microsoft", LogEventLevel.Warning) .MinimumLevel.Override("Microsoft", LogEventLevel.Warning)
.Enrich.FromLogContext() .Enrich.FromLogContext()
.WriteTo.Console() .WriteTo.Console()
.WriteTo.MSSqlServer(connectionString, "__Logs_Api", autoCreateSqlTable: true, columnOptions: columnOptions) .WriteTo.MSSqlServer(connectionString, "__Logs", autoCreateSqlTable: true, columnOptions: columnOptions)
.CreateLogger(); .CreateLogger();
try try

View File

@ -1,4 +1,5 @@
using AutoMapper; using AutoMapper;
using Chatbot.Api.Application.Commands;
using Chatbot.Api.Application.Queries; using Chatbot.Api.Application.Queries;
using Chatbot.Api.Domain.Entities; using Chatbot.Api.Domain.Entities;
@ -11,6 +12,7 @@ namespace Chatbot.Api.Application.Mappings
CreateMap<Bot, GetBots.Model>(); CreateMap<Bot, GetBots.Model>();
CreateMap<BotSession, GetSession.Model>(); CreateMap<BotSession, GetSession.Model>();
CreateMap<Chat, GetChat.Model>(); CreateMap<Chat, GetChat.Model>();
CreateMap<SaveChatMessage, ChatMessage>();
} }
} }
} }