diff --git a/Application/Users/Handlers/GetUserByKeycloakQueryHandler.cs b/Application/Users/Handlers/GetUserByKeycloakQueryHandler.cs deleted file mode 100644 index db8173b..0000000 --- a/Application/Users/Handlers/GetUserByKeycloakQueryHandler.cs +++ /dev/null @@ -1,23 +0,0 @@ -using Ardalis.Result; -using Mediator; -using Microsoft.EntityFrameworkCore; -using Musify.Application.Contracts; -using Musify.Application.Users.Queries; -using Musify.Application.Users.Responses; - -namespace Musify.Application.Users.Handlers -{ - public class GetUserByKeycloakQueryHandler(IDatabase database) - : IQueryHandler > - { - public async ValueTask> Handle(GetUserByKeycloakQuery request, CancellationToken cancellationToken) - { - var user = await database.Users - .AsNoTracking() - .Select(u => UserApplicationResponse.FromEntity(u)) - .SingleOrDefaultAsync(u => u.Id == request.Id, cancellationToken); - - return user ?? Result.NotFound(); - } - } -} diff --git a/Application/Users/Queries/GetUserByKeycloakQuery.cs b/Application/Users/Queries/GetUserByKeycloakQuery.cs deleted file mode 100644 index f351590..0000000 --- a/Application/Users/Queries/GetUserByKeycloakQuery.cs +++ /dev/null @@ -1,9 +0,0 @@ -using Ardalis.Result; -using Mediator; -using Musify.Application.Users.Responses; - -namespace Musify.Application.Users.Queries -{ - public record GetUserByKeycloakQuery(Guid Id) - : IQuery >; -}