Fix events unpublish
Closes no issue This bugs only occurs when using Postgres
Previous behaviour
Steps to reproduce:
- Create an event
- Publish
- Try to unpublish
New behaviour
Steps to validate that it works:
- Create an event
- Publish
- Try to unpublish