That's because priors must be invoked on the this instance, and not seneca. Line this.entity.transaction() actually creates a transaction on seneca and not on this, which means the information about the prior-stack is lost.
The provisional solution is to make seneca.entity a function, so that this along with the prior-stack may be preserved.
The code below currently crashes with the
"no_prior_action"
error:That's because priors must be invoked on the
this
instance, and notseneca
. Linethis.entity.transaction()
actually creates a transaction onseneca
and not onthis
, which means the information about the prior-stack is lost.The provisional solution is to make
seneca.entity
a function, so thatthis
along with the prior-stack may be preserved.