Added policy messages for WS. Fixed DB changes via stores. Updated chat voices messages via WS to use stores.
This commit is contained in:
@@ -8,7 +8,6 @@ namespace HermesSocketServer.Requests
|
||||
public class CreateTTSUser : IRequest
|
||||
{
|
||||
public string Name => "create_tts_user";
|
||||
|
||||
public string[] RequiredKeys => ["chatter", "voice"];
|
||||
private ChannelManager _channels;
|
||||
private Database _database;
|
||||
@@ -40,7 +39,7 @@ namespace HermesSocketServer.Requests
|
||||
bool result = channel.Chatters.Set(chatterId.ToString(), new ChatterVoice()
|
||||
{
|
||||
UserId = sender,
|
||||
ChatterId = chatterId.ToString(),
|
||||
ChatterId = chatterId,
|
||||
VoiceId = data["voice"].ToString()!
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user