OAuth Login Fails - remove is not available on the server. Please use removeAsync() instead

Description

I am running Rocket.Chat v7.3.3 and getting the following error:
Exception while invoking method login - remove is not available on the server. Please use removeAsync() instead.

It happens in app/2fa/server/loginHandler.ts:88. It seems like remove() is being used in place of removeAsync(). How can I fix this?

Server Setup Information

  • Version of Rocket.Chat Server: 7.3.3
  • Operating System: Linux (Docker Image)
  • Deployment Method: Docker
  • Number of Running Instances: 1
  • DB Replicaset Oplog: Yes
  • NodeJS Version: v22.11.0
  • MongoDB Version: 7.0 & tried 5.0
  • Proxy: nginx
  • Firewalls involved: no