aboutsummaryrefslogtreecommitdiffstats
path: root/code/api/src/Endpoints/Internal
diff options
context:
space:
mode:
Diffstat (limited to 'code/api/src/Endpoints/Internal')
-rw-r--r--code/api/src/Endpoints/Internal/Account/CreateAccountRoute.cs2
-rw-r--r--code/api/src/Endpoints/Internal/Root/RefreshConfigurationRoute.cs6
2 files changed, 3 insertions, 5 deletions
diff --git a/code/api/src/Endpoints/Internal/Account/CreateAccountRoute.cs b/code/api/src/Endpoints/Internal/Account/CreateAccountRoute.cs
index ee136a9..443c4a9 100644
--- a/code/api/src/Endpoints/Internal/Account/CreateAccountRoute.cs
+++ b/code/api/src/Endpoints/Internal/Account/CreateAccountRoute.cs
@@ -1,5 +1,3 @@
-using ILogger = Microsoft.Extensions.Logging.ILogger;
-
namespace IOL.GreatOffice.Api.Endpoints.Internal.Account;
public class CreateAccountRoute : RouteBaseAsync.WithRequest<CreateAccountRoute.Payload>.WithActionResult
diff --git a/code/api/src/Endpoints/Internal/Root/RefreshConfigurationRoute.cs b/code/api/src/Endpoints/Internal/Root/RefreshConfigurationRoute.cs
index fde4832..2bbfd8f 100644
--- a/code/api/src/Endpoints/Internal/Root/RefreshConfigurationRoute.cs
+++ b/code/api/src/Endpoints/Internal/Root/RefreshConfigurationRoute.cs
@@ -1,6 +1,6 @@
namespace IOL.GreatOffice.Api.Endpoints.Internal.Root;
-public class RefreshConfigurationRoute : RouteBaseSync.WithoutRequest.WithoutResult
+public class RefreshConfigurationRoute : RouteBaseAsync.WithoutRequest.WithoutResult
{
private readonly VaultService _vaultService;
@@ -9,7 +9,7 @@ public class RefreshConfigurationRoute : RouteBaseSync.WithoutRequest.WithoutRes
}
[HttpGet("~/_/refresh-configuration")]
- public override void Handle() {
- _vaultService.RefreshCurrentAppConfigurationAsync();
+ public override async Task HandleAsync(CancellationToken cancellationToken = default) {
+ await _vaultService.RefreshCurrentAppConfigurationAsync();
}
} \ No newline at end of file