feat: marketplace + post-detail dynamisch via API, syntax fix

This commit is contained in:
GeNii96 committed 2026-05-30 11:18:16 +02:00
1 parent ba282613ac
commit cb11acd306
6 files changed
+1077 -323

No files matched your search

+2 -1
View File
@@ -37,7 +37,8 @@ namespace OnlyPrompt.Backend.Utils
.MapCtorParamFrom(x => x.TierName, x => x.SubscriptionTier == null ? null : x.SubscriptionTier.Name)
.MapCtorParamFrom(x => x.CreatorName, x => x.Creator.Profile.DisplayName)
.MapCtorParamFrom(x => x.CreatorId, x => x.CreatorId)
.MapCtorParamFrom(x => x.AverageRating, x => x.Reviews.Average(r => (double?)r.Rating));
.MapCtorParamFrom(x => x.AverageRating, x => x.Reviews.Average(r => (double?)r.Rating))
.MapCtorParamFrom(x => x.CanAccess, x => false);
config.CreateMap<PromptModel, ApiMinimalPrompt>()
.MapCtorParamFrom(x => x.Id, x => x.Id)