mapping fix
parent
b8840707db
commit
9ce8ba06f6
|
@ -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
|
||||||
|
|
|
@ -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>();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in New Issue