Changed the default way to modify values in store. Added basic validation to stores. Using interfaces to DI store objects.
This commit is contained in:
@@ -41,11 +41,7 @@ namespace HermesSocketServer.Requests
|
||||
Type = type,
|
||||
};
|
||||
|
||||
bool result = channel.Actions.Modify(name, action =>
|
||||
{
|
||||
action.Type = type;
|
||||
action.Data = dict;
|
||||
});
|
||||
bool result = channel.Actions.Modify(name, action);
|
||||
if (result)
|
||||
{
|
||||
_logger.Information($"Added redeemable action to channel [name: {name}][type: {type}][channel: {channel.Id}]");
|
||||
|
||||
Reference in New Issue
Block a user