server repo fix: get user id in transaction