summary refs log tree commit diff
path: root/synapse/storage
diff options
context:
space:
mode:
authorNeil Johnson <neil@matrix.org>2018-11-13 16:15:24 +0000
committerNeil Johnson <neil@matrix.org>2018-11-13 16:15:24 +0000
commita54aaf42add9e32f82c1fa8a60323bb350e63362 (patch)
tree6dc7ed9d13ec61b450edaab79b43e974fa8a9c46 /synapse/storage
parentremove errant prints (diff)
downloadsynapse-a54aaf42add9e32f82c1fa8a60323bb350e63362.tar.xz
fix boolean typing
Diffstat (limited to 'synapse/storage')
-rw-r--r--synapse/storage/user_directory.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/storage/user_directory.py b/synapse/storage/user_directory.py
index ae7ff5ec73..a77c9a0579 100644
--- a/synapse/storage/user_directory.py
+++ b/synapse/storage/user_directory.py
@@ -785,7 +785,7 @@ class UserDirectoryStore(SQLBaseStore):
             desc="is_support_user",
         )
 
-        defer.returnValue(res if res == UserTypes.SUPPORT else False)
+        defer.returnValue(True if res == UserTypes.SUPPORT else False)
 
 
 def _parse_query_sqlite(search_term):