From 5e072d88c206b4c9b79032afb1ab90368065dc22 Mon Sep 17 00:00:00 2001 From: Polianin Nikita Date: Wed, 18 Dec 2024 07:29:58 +0300 Subject: [PATCH] fix: converter dto --- Endpoint/Common/MapperDto/AvailableProvidersConverter.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Endpoint/Common/MapperDto/AvailableProvidersConverter.cs b/Endpoint/Common/MapperDto/AvailableProvidersConverter.cs index 02021bd..9a01f17 100644 --- a/Endpoint/Common/MapperDto/AvailableProvidersConverter.cs +++ b/Endpoint/Common/MapperDto/AvailableProvidersConverter.cs @@ -17,11 +17,11 @@ public static class AvailableProvidersConverter _ => throw new ArgumentOutOfRangeException(nameof(provider), provider, null) }; - public static List ConvertToDto(this (OAuthProvider Provider, Uri Redirect)[] data) => - data.Select(x => new AvailableProvidersResponse() + public static List ConvertToDto(this (OAuthProvider Provider, Uri Redirect)[] data) => + data.Select(x => new AvailableOAuthProvidersResponse() { ProviderName = Enum.GetName(x.Provider)!, Provider = x.Provider.ConvertToDto(), - Redirect = x.Redirect + Redirect = x.Redirect.ToString() }).ToList(); } \ No newline at end of file