How do you add the user or user id in a collection version that made the change

default discord avatar
christopher.nowlan
3 months ago
2

I am just trying to add a user ID to a collection version so I can keep track who has made what changes

  • default discord avatar
    jarrod69420
    3 months ago

    You could make a field that gets updated in a beforeChange hook, using the user on the req to set the value

  • default discord avatar
    christopher.nowlan
    3 months ago

    Thanks @jarrod69420 that worked a treat

Open the post
Continue the discussion in Discord
Like what we're doing?
Star us on GitHub!

Star

Connect with the Payload Community on Discord

Discord

online

Can't find what you're looking for?

Get help straight from the Payload team with an Enterprise License.