Can not get Tree anymore with shared Team
(Maybe related with !366 (merged))
Summary
With last change/commit, shared Team can not be shown any more with the following backend error: UnexpectedNull {errSQLType = "int4", errSQLTableOid = Just (Oid 195567), errSQLField = "result4_2", errHaskellType = "Int", errMessage = ""}
Steps to reproduce
Log in with user1 and user2: both show their tree. With user1 create a team and invite user2. User2 can not be get his tree anymore with such error: UnexpectedNull {errSQLType = "int4", errSQLTableOid = Just (Oid 195567), errSQLField = "result4_2", errHaskellType = "Int", errMessage = ""}
What is the current bug behavior?
User2 can not get his tree anymore
What is the expected correct behavior?
User2 should be able to get his tree even if a team is shared with him.
Relevant logs and/or screenshots
UnexpectedNull {errSQLType = "int4", errSQLTableOid = Just (Oid 195567), errSQLField = "result4_2", errHaskellType = "Int", errMessage = ""}
Looks like the data from Nodes_Nodes are not available anymore