Skip to content

perf: Don't load user from DB where not necessary

Administrator requested to merge es/less-user-queries into main

Created by: eseliger

In a couple of places, we used CurrentUser, which reaches out to the DB to get the entire user record. However, we only ever needed the user ID, which we already validated in the context, so we can just use the actor package. It saves a DB request :)

Merge request reports

Loading