Added policy messages for WS. Fixed DB changes via stores. Updated chat voices messages via WS to use stores.
This commit is contained in:
@@ -73,7 +73,7 @@ namespace HermesSocketServer.Store
|
||||
}
|
||||
|
||||
_logger.Debug($"TtsVoice - Adding {count} rows to database: {sql}");
|
||||
await _database.ExecuteScalar(sql);
|
||||
await _database.ExecuteScalarTransaction(sql);
|
||||
}
|
||||
if (_modified.Any())
|
||||
{
|
||||
@@ -84,7 +84,7 @@ namespace HermesSocketServer.Store
|
||||
_modified.Clear();
|
||||
}
|
||||
_logger.Debug($"TtsVoice - Modifying {count} rows in database: {sql}");
|
||||
await _database.ExecuteScalar(sql);
|
||||
await _database.ExecuteScalarTransaction(sql);
|
||||
}
|
||||
if (_deleted.Any())
|
||||
{
|
||||
@@ -95,7 +95,7 @@ namespace HermesSocketServer.Store
|
||||
_deleted.Clear();
|
||||
}
|
||||
_logger.Debug($"TtsVoice - Deleting {count} rows from database: {sql}");
|
||||
await _database.ExecuteScalar(sql);
|
||||
await _database.ExecuteScalarTransaction(sql);
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user