Skip to content

Commit

Permalink
fix draft (#43)
Browse files Browse the repository at this point in the history
  • Loading branch information
MysticFragilist authored Apr 12, 2024
1 parent 3e4a80b commit 3ffe381
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions core/Extensions/DependencyInjectionExtension.cs
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ public static IServiceCollection AddDependencyInjection(this IServiceCollection
services.AddTransient<IReportService, ReportService>();
services.AddTransient<IActivityAreaService, ActivityAreaService>();
services.AddTransient<IModeratorService, ModeratorService>();
services.AddTransient<IDraftEventService, DraftEventService>();
services.AddTransient<IImageService, ImageService>();
services.AddTransient<ISubscriptionService, SubscriptionService>();
services.AddTransient<INotificationService, NotificationService>();
Expand Down
2 changes: 1 addition & 1 deletion core/Services/DraftEventService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ public bool UpdateDraftEvent(Guid userId, Guid eventId, DraftEventRequestDTO req
evnt.EventEndDate = request.EventEndDate;
evnt.Publication.Title = request.Title;
evnt.Publication.Content = request.Content;
evnt.Publication.State = State.OnHold;
evnt.Publication.State = State.Draft;
evnt.Publication.ImageUrl = imageUrl;
evnt.Publication.PublicationDate = request.PublicationDate;
evnt.Publication.ImageAltText = request.ImageAltText;
Expand Down

0 comments on commit 3ffe381

Please sign in to comment.