Add currently active client mods in ProfileActivityService (#523)
* Add currently active client mods in ProfileActivityService * Add method to fetch active client mods on profile
This commit is contained in:
@@ -6,6 +6,7 @@ using SPTarkov.Server.Core.Models.Eft.Common;
|
||||
using SPTarkov.Server.Core.Models.Eft.Common.Request;
|
||||
using SPTarkov.Server.Core.Models.Eft.Game;
|
||||
using SPTarkov.Server.Core.Servers;
|
||||
using SPTarkov.Server.Core.Services;
|
||||
using SPTarkov.Server.Core.Utils;
|
||||
|
||||
namespace SPTarkov.Server.Core.Callbacks;
|
||||
@@ -16,6 +17,7 @@ public class GameCallbacks(
|
||||
Watermark watermark,
|
||||
SaveServer saveServer,
|
||||
GameController gameController,
|
||||
ProfileActivityService profileActivityService,
|
||||
TimeUtil timeUtil
|
||||
) : IOnLoad
|
||||
{
|
||||
@@ -173,4 +175,19 @@ public class GameCallbacks(
|
||||
{
|
||||
return new ValueTask<string>(httpResponseUtil.NullResponse());
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Handle singleplayer/clientmods
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public ValueTask<string> ReceiveClientMods(
|
||||
string url,
|
||||
SendClientModsRequest request,
|
||||
MongoId sessionID
|
||||
)
|
||||
{
|
||||
profileActivityService.SetProfileActiveClientMods(sessionID, request.ActiveClientMods);
|
||||
|
||||
return new ValueTask<string>(httpResponseUtil.NullResponse());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user