Reviewed code
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
@@ -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;
|
||||
|
||||
@@ -75,7 +75,6 @@ app.UseAuthentication()
|
||||
.UseSwaggerGen();
|
||||
|
||||
app.MapHub<GroupHub>("/groupHub");
|
||||
app.MapHub<TimeHub>("/timeHub");
|
||||
|
||||
//app.UseHttpsRedirection();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user