You can use update directly:
strapi.query('chat').update({id: ctx.request.body.datausersupportid}, {data})
And maybe it’s more safe to use strapi services instead of query directly 
You can use update directly:
strapi.query('chat').update({id: ctx.request.body.datausersupportid}, {data})
And maybe it’s more safe to use strapi services instead of query directly 