fix(server): reject eval inside transaction multi blocks #457
Signed-off-by: Boaz Sade [email protected]
This commit is meant to bypass issue #457 This is not a fix but a workaround. There is a new issue #467 that is meat for fixing the root cause. This one is only temporary solution of the issue. What it does is making sure that if we have "eval" inside "Multi" it would return an error to the user. The reason that this do not let users running scripts inside Multi is that this would cause transaction schedule function to be called recursively. This in turn will break the precondition for the function that is not to allow calling it from within the same schedule context. This PR just block this from happening by failing the multi in case the user sends eval in the list of commands. This also update the list of the commands that we are processing for ioredis.
I see, there are some formatting issues :)