Removed demo objects for which is used for testing purpose
This commit is contained in:
parent
bb76047605
commit
373d80260f
@ -26,12 +26,6 @@ namespace Marco.Pms.Services.Controllers
|
||||
/// <returns>An <see cref="IActionResult"/> indicating the success of the operation.</returns>
|
||||
public IActionResult MobileLogging([FromBody] List<LogStructure> logs)
|
||||
{
|
||||
var demoDetails = new
|
||||
{
|
||||
name = "Pooja",
|
||||
job = "Tester",
|
||||
org = "MarcoAiot"
|
||||
};
|
||||
// Check if logs are provided to avoid processing empty requests
|
||||
if (logs == null || !logs.Any())
|
||||
{
|
||||
@ -46,7 +40,6 @@ namespace Marco.Pms.Services.Controllers
|
||||
|
||||
// Attempt to deserialize the 'Details' string into a dynamic object
|
||||
// This allows structured logging of the details payload.
|
||||
log.Details = JsonSerializer.Serialize(demoDetails);
|
||||
if (!string.IsNullOrWhiteSpace(log.Details))
|
||||
{
|
||||
try
|
||||
|
Loading…
x
Reference in New Issue
Block a user