fix: cheers, it builds now

This commit is contained in:
2025-09-30 19:17:10 +03:00
parent dcbdb393cf
commit 0021c352dc
11 changed files with 8 additions and 156 deletions

View File

@@ -17,16 +17,12 @@ public class AnalyticsService : IAnalyticsService
{
var totalUsers = await _uow.Users.Query().CountAsync(ct);
var totalMissions = await _uow.Missions.Query().CountAsync(ct);
var completedMissions = await _uow.UserMissions.Query(um => um.Status == MissionStatus.Completed).CountAsync(ct);
var totalArtifacts = await _uow.Artifacts.Query().CountAsync(ct);
var totalStoreItems = await _uow.StoreItems.Query().CountAsync(ct);
var totalExperience = await _uow.Users.Query().SumAsync(u => (long)u.Experience, ct);
return new AnalyticsSummary
{
TotalUsers = totalUsers,
TotalMissions = totalMissions,
CompletedMissions = completedMissions,
TotalArtifacts = totalArtifacts,
TotalStoreItems = totalStoreItems,
TotalExperience = totalExperience
};

View File

@@ -1,7 +1,5 @@
using LctMonolith.Services.Models;
using LctMonolith.Services.Models;
namespace LctMonolith.Services;
public interface IAnalyticsService

View File

@@ -5,5 +5,4 @@ namespace LctMonolith.Services.Contracts;
public interface IInventoryService
{
Task<IEnumerable<UserInventoryItem>> GetStoreInventoryAsync(Guid userId, CancellationToken ct = default);
Task<IEnumerable<UserArtifact>> GetArtifactsAsync(Guid userId, CancellationToken ct = default);
}

View File

@@ -1,9 +0,0 @@
using LctMonolith.Models.Database;
namespace LctMonolith.Services.Models;
public class UpdateMissionStatusRequest
{
public MissionStatus Status { get; set; }
public string? SubmissionData { get; set; }
}

View File

@@ -10,7 +10,6 @@ using LctMonolith.Services.Models;
using Microsoft.AspNetCore.Identity;
using Microsoft.Extensions.Options;
using Microsoft.IdentityModel.Tokens;
using Serilog;
namespace LctMonolith.Services;