The file already has the ChannelID field. Therefore, we avoid querying the database again. This sometimes causes errors in customer environments where there is noticeable replication lag, causing files not to be indexed entirely. https://mattermost.atlassian.net/browse/MM-62900 ```release-note NONE ``` Co-authored-by: Mattermost Build <build@mattermost.com>