Reviewed code

This commit is contained in:
2026-04-22 17:43:17 +01:00
parent 7f30ccaaf1
commit a64956c980
6 changed files with 0 additions and 20 deletions
@@ -40,7 +40,6 @@ public class AcceptFriendRequestEndpoint(UserService userService, UserFriendsRep
};
await userFriendsRepository.AddAsync(friend, ct);
await userFriendsRepository.SaveChangesAsync(ct);
await Send.NoContentAsync(ct);
}
}
@@ -38,7 +38,6 @@ public class UpdateUserEndpoint(UsersRepository usersRepository, UserService use
mapper.Map(req, user);
await usersRepository.SaveChangesAsync(ct);
await Send.NoContentAsync(ct);
await Send.OkAsync(await usersRepository.ProjectToSingleAsync<GetUserDetailsDto>(new GetUserByIdSpec(userId), ct), ct);
}
}
-15
View File
@@ -1,15 +0,0 @@
using Microsoft.AspNetCore.SignalR;
namespace BeReadyBackend.Hubs;
public class TimeHub : Hub
{
public async Task SendTime()
{
while (true)
{
await Clients.All.SendAsync("ReceiveTime", DateTime.Now);
await Task.Delay(1000);
}
}
}
@@ -4,7 +4,6 @@ using BeReadyBackend.DTO.Friends;
using BeReadyBackend.DTO.Groups;
using BeReadyBackend.DTO.Messages;
using BeReadyBackend.DTO.Users;
using BeReadyBackend.Endpoints.Friends;
using BeReadyBackend.Models;
namespace BeReadyBackend.MappingProfiles;
@@ -4,7 +4,6 @@ using BeReadyBackend.DTO.Designations;
using BeReadyBackend.DTO.Friends;
using BeReadyBackend.DTO.Groups;
using BeReadyBackend.DTO.Messages;
using BeReadyBackend.DTO.Posts;
using BeReadyBackend.DTO.RandomChallenges;
using BeReadyBackend.DTO.Users;
using BeReadyBackend.Models;
-1
View File
@@ -75,7 +75,6 @@ app.UseAuthentication()
.UseSwaggerGen();
app.MapHub<GroupHub>("/groupHub");
app.MapHub<TimeHub>("/timeHub");
//app.UseHttpsRedirection();