* Fix Via parsing

* Use LIKE for real name lookup
This commit is contained in:
Bryan Ashby 2018-01-01 18:43:05 -07:00
parent 84a1f70fc2
commit b97f96ce18
2 changed files with 8 additions and 6 deletions

View file

@ -427,7 +427,7 @@ module.exports = class User {
WHERE id = (
SELECT user_id
FROM user_property
WHERE prop_name='real_name' AND prop_value=?
WHERE prop_name='real_name' AND prop_value LIKE ?
);`,
[ realName ],
(err, row) => {