There was an error while loading. Please reload this page.
1 parent 83d64df commit d5abf7bCopy full SHA for d5abf7b
1 file changed
src/DntSite.Web/Features/Posts/ModelsMappings/PostsMappersExtensions.cs
@@ -234,7 +234,9 @@ public static BlogPostDraft MapWriteDraftModelToBlogPostDraft(this WriteDraftMod
234
destination.IsConverted = draft.IsConverted;
235
destination.ReadingTimeMinutes = draft.ReadingTimeMinutes;
236
destination.DateTimeToShow = draft.DateTimeToShow;
237
- destination.UserId = draft.UserId;
+
238
+ destination.UserId ??= draft.UserId;
239
240
destination.IsReady = draft.IsReady;
241
destination.Tags = draft.Tags;
242
destination.NumberOfRequiredPoints = draft.NumberOfRequiredPoints;
0 commit comments