Fixed AutoSavedStore's deletion of data when table was using composite keys.

This commit is contained in:
Tom
2025-01-09 03:38:23 +00:00
parent 3429c8f8dc
commit 467c3cf0b0
15 changed files with 202 additions and 221 deletions

View File

@@ -5,7 +5,7 @@ using HermesSocketServer.Validators;
namespace HermesSocketServer.Store
{
public class VoiceStateStore : AutoSavedStore<string, TTSVoiceState>
public class VoiceStateStore : ComplexAutoSavedStore<string, TTSVoiceState>
{
private readonly string _userId;
private readonly VoiceIdValidator _idValidator;
@@ -48,7 +48,7 @@ namespace HermesSocketServer.Store
{
}
protected override void OnInitialRemove(string key)
protected override void OnPostRemove(string key, TTSVoiceState value)
{
}
}