You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
At the moment, DatabaseManager.get() function returns undefined when no record is found. This was in line with older TypeORM!s EntityManager that we were using until recently when we introduced a newer TypeORM version in #491.
Let's change the return value to null to align the returning value with EntityManager. The null value is a better representation of empty results anyway, plus easier to work with in JS.
After that, we need to update the code in Joystream QN to reflect this change.
The text was updated successfully, but these errors were encountered:
At the moment,
DatabaseManager.get()
function returnsundefined
when no record is found. This was in line with older TypeORM!sEntityManager
that we were using until recently when we introduced a newer TypeORM version in #491.Let's change the return value to
null
to align the returning value withEntityManager
. The null value is a better representation of empty results anyway, plus easier to work with in JS.After that, we need to update the code in Joystream QN to reflect this change.
The text was updated successfully, but these errors were encountered: