Skip to content

Commit

Permalink
fix: pivot transform id to name
Browse files Browse the repository at this point in the history
  • Loading branch information
VillSource committed Mar 2, 2024
1 parent 05ecb2d commit 1bdf32b
Showing 1 changed file with 7 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -84,18 +84,21 @@ protected override async Task<IResponseWrapper<ResponseType>> Execute(GetArticel
filler.After = request.Privot[1..];
}

filler.Before?.Replace("TermsAndPolicy", "AAAAAAAAAECAAAAAAAAAAA").Replace("SupportedProgrammingLanguages","EREREREREUGREREREREREQ");
filler.After?.Replace("TermsAndPolicy", "AAAAAAAAAECAAAAAAAAAAA").Replace("SupportedProgrammingLanguages","EREREREREUGREREREREREQ");

var res = await _article.Find(filler, request.Sub);


// maping model
var col = res.Collections.Select(article => new GetArticelsQueryDto()
{
Id = Base64UrlEncoder.Encode(article.ID.ToByteArray()),
AuthorId = article.AuthorId == "AAAAAAAAAECAAAAAAAAAAA"
Id = Base64UrlEncoder.Encode(article.ID.ToByteArray()) == "AAAAAAAAAECAAAAAAAAAAA"
? "TermsAndPolicy"
: article.AuthorId == "EREREREREUGREREREREREQ"
: Base64UrlEncoder.Encode(article.ID.ToByteArray()) == "EREREREREUGREREREREREQ"
? "SupportedProgrammingLanguages"
: article.AuthorId,
: Base64UrlEncoder.Encode(article.ID.ToByteArray()),
AuthorId = article.AuthorId,
Title = article.Title,
CoverImage = article.Cover,
Expand Down

0 comments on commit 1bdf32b

Please sign in to comment.