[FIX] bus: wrong type in update_bus_presence route

´inactivity_period´ is expected to be an int.

closes odoo/odoo#99874

Signed-off-by: Julien Castiaux <juc@odoo.com>
This commit is contained in:
Denis Vermylen
2022-09-12 16:30:58 +02:00
parent 40d9249f90
commit f2d5af0277
+1 -1
View File
@@ -42,7 +42,7 @@ class WebsocketController(Controller):
@route('/websocket/update_bus_presence', type='http', auth='public', cors='*')
def update_bus_presence(self, inactivity_period):
request.env['ir.websocket']._update_bus_presence(inactivity_period)
request.env['ir.websocket']._update_bus_presence(int(inactivity_period))
@route('/bus/websocket_worker_bundle', type='http', auth='public', cors='*')
def get_websocket_worker_bundle(self):