Skip to content

Commit 63c6565

Browse files
committed
Update ListSessions.cs
1 parent c18cd36 commit 63c6565

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
using System.Net.Mime;
2-
using System.Runtime.CompilerServices;
32
using Microsoft.AspNetCore.Mvc;
43
using OpenShock.API.Models.Response;
54

@@ -9,10 +8,9 @@ public sealed partial class SessionsController
98
{
109
[HttpGet]
1110
[ProducesResponseType<LoginSessionResponse[]>(StatusCodes.Status200OK, MediaTypeNames.Application.Json)]
12-
public IAsyncEnumerable<LoginSessionResponse> ListSessions([EnumeratorCancellation] CancellationToken cancellationToken)
11+
public IAsyncEnumerable<LoginSessionResponse> ListSessions()
1312
{
1413
return _sessionService.ListSessionsByUserIdAsync(CurrentUser.Id)
15-
.WithCancellation(cancellationToken)
1614
.Select(LoginSessionResponse.MapFrom);
1715
}
1816
}

0 commit comments

Comments
 (0)