Skip to content

Commit 1e3b3ce

Browse files
Ignore API for DataObjectsController and refactor BackgroundTasksController (#381)
* Set ApiExplorerSettings to ignore API for DataObjectsController * Refactor BackgroundTasksController: reorder using directives and update cache flushing logic
1 parent 8703146 commit 1e3b3ce

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

hasheous/Controllers/V1.0/BackgroundTasksController.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
using Microsoft.AspNetCore.Mvc;
21
using Classes;
3-
using Microsoft.AspNetCore.Authorization;
42
using Classes.ProcessQueue;
3+
using Microsoft.AspNetCore.Authorization;
4+
using Microsoft.AspNetCore.Mvc;
55

66
namespace hasheous_server.Controllers.v1_0
77
{
@@ -85,7 +85,7 @@ public IActionResult FlushCache()
8585
{
8686
if (Config.RedisConfiguration.Enabled == true)
8787
{
88-
hasheous.Classes.RedisConnection.PurgeCache();
88+
_ = hasheous.Classes.RedisConnection.PurgeCache();
8989
}
9090

9191
return Ok();

hasheous/Controllers/V1.0/DataObjectController.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ namespace hasheous_server.Controllers.v1_0
1515
[ApiController]
1616
[Route("api/v{version:apiVersion}/[controller]/")]
1717
[ApiVersion("1.0")]
18-
[ApiExplorerSettings(IgnoreApi = false)]
18+
[ApiExplorerSettings(IgnoreApi = true)]
1919
[Authorize]
2020
public class DataObjectsController : ControllerBase
2121
{

0 commit comments

Comments
 (0)