Simplify your stack and build anything. Or everything.
Build tomorrow’s web with a modern solution you truly own.
Code-based nature means you can build on top of it to power anything.
It’s time to take back your content infrastructure.

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

default discord avatar
christopher.nowlan5 months ago
1

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



Thanks

@281120856527077378

that worked a treat

  • discord user avatar
    jarrod_not_jared
    2 years ago

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

Star on GitHub

Star

Chat on Discord

Discord

online

Can't find what you're looking for?

Get dedicated engineering support directly from the Payload team.