Less spam

This commit is contained in:
Loporrit
2024-01-15 22:47:54 +00:00
parent 8cf4f50091
commit e8d99a0d17
2 changed files with 2 additions and 2 deletions

View File

@@ -358,7 +358,7 @@ public partial class MareHub
await _dbContext.SaveChangesAsync().ConfigureAwait(false); await _dbContext.SaveChangesAsync().ConfigureAwait(false);
await Clients.User(dto.User.UID).Client_ReceiveServerMessage(MessageSeverity.Warning, "Your Mare profile has been reported and disabled for admin validation").ConfigureAwait(false); await Clients.User(dto.User.UID).Client_ReceiveServerMessage(MessageSeverity.Warning, "Your profile has been reported and disabled for admin validation").ConfigureAwait(false);
var allPairedUsers = await GetAllPairedUnpausedUsers(dto.User.UID).ConfigureAwait(false); var allPairedUsers = await GetAllPairedUnpausedUsers(dto.User.UID).ConfigureAwait(false);
var pairs = await GetOnlineUsers(allPairedUsers).ConfigureAwait(false); var pairs = await GetOnlineUsers(allPairedUsers).ConfigureAwait(false);

View File

@@ -231,7 +231,7 @@ internal class DiscordBot : IHostedService
{ {
using (var scope = _services.CreateScope()) using (var scope = _services.CreateScope())
{ {
_logger.LogInformation("Checking for Profile Reports"); _logger.LogTrace("Checking for Profile Reports");
var dbContext = scope.ServiceProvider.GetRequiredService<MareDbContext>(); var dbContext = scope.ServiceProvider.GetRequiredService<MareDbContext>();
if (!dbContext.UserProfileReports.Any()) if (!dbContext.UserProfileReports.Any())
{ {