Skip to content
Snippets Groups Projects
Commit f2d5af02 authored by Denis Vermylen's avatar Denis Vermylen
Browse files

[FIX] bus: wrong type in update_bus_presence route


´inactivity_period´ is expected to be an int.

closes odoo/odoo#99874

Signed-off-by: default avatarJulien Castiaux <juc@odoo.com>
parent 40d9249f
No related branches found
No related tags found
No related merge requests found
......@@ -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):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment