-
- Downloads
Fix dispatch error in `with-model-cleanup` (#38584)
`with-model-cleanup` is called like so: ``` (with-model-cleanup [:model/User] ...) ``` This ends up calling: ``` (with-model-cleanup-additional-conditions model) ``` to get the additional conditions necessary when "cleaning up" the model. This multimethod dispatched on `mi/model`. But `(mi/model :model/User)` is `nil`. Instead, we *already have* the model, not an instance of it, so we want to dispatch on that to properly clean up after ourselves.
Please register or sign in to comment