beforeUpdate Hook
bwobst opened this issue · comments
I want to slugify the title field before every update. How can I do this? Using afterUpdate
makes the slug always one step behind. Something like beforeUpdate
would be ideal.
There should be a beforeUpdate callback available.
Sent from my iPhone
On Jun 12, 2016, at 10:14 AM, Brian notifications@github.com wrote:
How can I do this? Using afterUpdate makes the slug always one step behind. Something like beforeUpdate would be ideal.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.
I found that beforeUpdate does exist, but throws a "not allowed to do that
because it'd affect other fields" error when I try to manually do a
Collection.update({}) on one field that isn't required or part of the
WYSIWYG.
On Sat, Jun 11, 2016 at 8:03 PM, Brent Abrahams notifications@github.com
wrote:
There should be a beforeUpdate callback available.
Sent from my iPhone
On Jun 12, 2016, at 10:14 AM, Brian notifications@github.com wrote:
How can I do this? Using afterUpdate makes the slug always one step
behind. Something like beforeUpdate would be ideal.—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
#73 (comment),
or mute the thread
https://github.com/notifications/unsubscribe/ACsX-C5Ike4RSmv870q601JenMwLrYwXks5qK3b4gaJpZM4Izrya
.
Hmmm... that error doesn't sound like it's coming from this package. (I mean the text of the error doesn't appear in this package's code anywhere.) If I could look at a repo with a minimal repro in it I could probably figure out what's going on.