fix Syncher whitespace
This commit is contained in:
@@ -332,7 +332,7 @@ namespace PARR.AIHIT
|
|||||||
|
|
||||||
private async Task<Application?> CreateAppIfNotExistAsync(string appName, ApplicationTypesEnum type)//Application application)
|
private async Task<Application?> CreateAppIfNotExistAsync(string appName, ApplicationTypesEnum type)//Application application)
|
||||||
{
|
{
|
||||||
if (string.IsNullOrEmpty(appName)) return null;
|
if (string.IsNullOrEmpty(appName) || string.IsNullOrWhiteSpace(appName)) return null;
|
||||||
|
|
||||||
var existApp = await appService.GetByNameAsync(appName);
|
var existApp = await appService.GetByNameAsync(appName);
|
||||||
if (existApp != null)
|
if (existApp != null)
|
||||||
|
|||||||
@@ -6,6 +6,7 @@
|
|||||||
public DateTimeOffset StartAt { get; set; }
|
public DateTimeOffset StartAt { get; set; }
|
||||||
public int FrequencyMinute { get; set; }
|
public int FrequencyMinute { get; set; }
|
||||||
public required JobModeResponse JobMode { get; set; }
|
public required JobModeResponse JobMode { get; set; }
|
||||||
|
public required string ScriptName { get; set; }
|
||||||
}
|
}
|
||||||
|
|
||||||
public class JobGetAllResponse : JobBaseResponse
|
public class JobGetAllResponse : JobBaseResponse
|
||||||
|
|||||||
@@ -101,13 +101,11 @@ namespace PARR.API.Controllers.V1
|
|||||||
jobsJoined.Add(item);
|
jobsJoined.Add(item);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
jobsJoined.Distinct();
|
|
||||||
|
|
||||||
|
|
||||||
if (!jobsJoined.Any())
|
if (!jobsJoined.Any())
|
||||||
return NoContent();
|
return NoContent();
|
||||||
|
|
||||||
var jobResponse = mapper.Map<List<JobGetAllResponse>>(jobsJoined);
|
var jobResponse = mapper.Map<List<JobGetAllResponse>>(jobsJoined.Distinct());
|
||||||
|
|
||||||
return Ok(new Response<List<JobGetAllResponse>>(jobResponse, true, new List<ErrorModel>(), $"{ip},{date}"));
|
return Ok(new Response<List<JobGetAllResponse>>(jobResponse, true, new List<ErrorModel>(), $"{ip},{date}"));
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user