fix #5194 - improve performance of retrieving scheduled job logs

This commit is contained in:
sbwalker
2025-03-31 13:16:35 -04:00
parent 72da77be01
commit e6ba2cce62
8 changed files with 24 additions and 18 deletions

View File

@ -17,12 +17,12 @@ namespace Oqtane.Controllers
_jobLogs = jobLogs;
}
// GET: api/<controller>
// GET: api/<controller>?jobid=x
[HttpGet]
[Authorize(Roles = RoleNames.Host)]
public IEnumerable<JobLog> Get()
public IEnumerable<JobLog> Get(string jobid)
{
return _jobLogs.GetJobLogs();
return _jobLogs.GetJobLogs(int.Parse(jobid));
}
// GET api/<controller>/5