Removed demo objects for which is used for testing purpose

This commit is contained in:
ashutosh.nehete 2025-06-24 10:10:03 +05:30
parent bb76047605
commit 373d80260f

View File

@ -26,12 +26,6 @@ namespace Marco.Pms.Services.Controllers
/// <returns>An <see cref="IActionResult"/> indicating the success of the operation.</returns> /// <returns>An <see cref="IActionResult"/> indicating the success of the operation.</returns>
public IActionResult MobileLogging([FromBody] List<LogStructure> logs) 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 // Check if logs are provided to avoid processing empty requests
if (logs == null || !logs.Any()) if (logs == null || !logs.Any())
{ {
@ -46,7 +40,6 @@ namespace Marco.Pms.Services.Controllers
// Attempt to deserialize the 'Details' string into a dynamic object // Attempt to deserialize the 'Details' string into a dynamic object
// This allows structured logging of the details payload. // This allows structured logging of the details payload.
log.Details = JsonSerializer.Serialize(demoDetails);
if (!string.IsNullOrWhiteSpace(log.Details)) if (!string.IsNullOrWhiteSpace(log.Details))
{ {
try try