LPS-39471 We need to execute the notify logic after the transaction has already been committed because otherwise when the SubscriptionSender checks if the user has permission to view the entry he won't be able to retrieve the entry (because the notification is asynchronous and is sent in a separate thread and the transaction hasn't been committed yet) and it will return that the user doesn't have permission to view the entry.
LPS-39471 SF