diff --git a/MiniSpace.Services.Notifications/src/MiniSpace.Services.Notifications.Application/Events/External/Handlers/FriendInvitedHandler.cs b/MiniSpace.Services.Notifications/src/MiniSpace.Services.Notifications.Application/Events/External/Handlers/FriendInvitedHandler.cs index cf1c44161..8dd3362b6 100644 --- a/MiniSpace.Services.Notifications/src/MiniSpace.Services.Notifications.Application/Events/External/Handlers/FriendInvitedHandler.cs +++ b/MiniSpace.Services.Notifications/src/MiniSpace.Services.Notifications.Application/Events/External/Handlers/FriendInvitedHandler.cs @@ -36,7 +36,7 @@ public async Task HandleAsync(FriendInvited @event, CancellationToken cancellati { var inviter = await _studentsServiceClient.GetAsync(@event.InviterId); var notificationMessage = $"You have been invited by {inviter.FirstName} {inviter.LastName} to be friends."; - var detailsHtml = $"
View {inviter.FirstName} {inviter.LastName}'s profile to respond to the friend invitation.
"; + var detailsHtml = $"View {inviter.FirstName} {inviter.LastName}'s profile to respond to the friend invitation.
"; var notificationId = Guid.NewGuid(); var notification = new Notification( diff --git a/MiniSpace.Services.Notifications/src/MiniSpace.Services.Notifications.Application/Events/External/Handlers/FriendRequestSentHandler.cs b/MiniSpace.Services.Notifications/src/MiniSpace.Services.Notifications.Application/Events/External/Handlers/FriendRequestSentHandler.cs index 8e0972b7a..29fff237e 100644 --- a/MiniSpace.Services.Notifications/src/MiniSpace.Services.Notifications.Application/Events/External/Handlers/FriendRequestSentHandler.cs +++ b/MiniSpace.Services.Notifications/src/MiniSpace.Services.Notifications.Application/Events/External/Handlers/FriendRequestSentHandler.cs @@ -30,7 +30,7 @@ public async Task HandleAsync(FriendRequestSent @event, CancellationToken cancel { var inviter = await _studentsServiceClient.GetAsync(@event.InviterId); var notificationMessage = $"You have been invited by {inviter.FirstName} {inviter.LastName} to be friends."; - var detailsHtml = $"View {inviter.FirstName} {inviter.LastName}'s profile to respond to the friend invitation.
"; + var detailsHtml = $"View {inviter.FirstName} {inviter.LastName}'s profile to respond to the friend invitation.
"; var notification = new Notification( notificationId: Guid.NewGuid(), diff --git a/MiniSpace.Services.Notifications/src/MiniSpace.Services.Notifications.Infrastructure/Mongo/Repositories/StudentNotificationsMongoRepository.cs b/MiniSpace.Services.Notifications/src/MiniSpace.Services.Notifications.Infrastructure/Mongo/Repositories/StudentNotificationsMongoRepository.cs index cdd2c38bb..f4f7f9b58 100644 --- a/MiniSpace.Services.Notifications/src/MiniSpace.Services.Notifications.Infrastructure/Mongo/Repositories/StudentNotificationsMongoRepository.cs +++ b/MiniSpace.Services.Notifications/src/MiniSpace.Services.Notifications.Infrastructure/Mongo/Repositories/StudentNotificationsMongoRepository.cs @@ -41,26 +41,63 @@ public async Task UpdateAsync(StudentNotifications studentNotifications) await _repository.Collection.UpdateOneAsync(filter, update, options); } - public async Task AddOrUpdateAsync(StudentNotifications studentNotifications) + // public async Task AddOrUpdateAsync(StudentNotifications studentNotifications) + // { + // var document = studentNotifications.AsDocument(); + // var filter = Builders