You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
Thanks for concise and very useful example! I added this functionality to my project very easily based on your description.
I ran into some trouble in my tests where I call PersistedModel.destroyAll() a lot. In that call, ctx.where.id is not defined. Something like this should work for both destroyById() and destroyAll() (adapted from a project where I didn't use promises, and handle errors differently):
Hi,
Thanks for concise and very useful example! I added this functionality to my project very easily based on your description.
I ran into some trouble in my tests where I call
PersistedModel.destroyAll()
a lot. In that call,ctx.where.id
is not defined. Something like this should work for bothdestroyById()
anddestroyAll()
(adapted from a project where I didn't use promises, and handle errors differently):The text was updated successfully, but these errors were encountered: