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
Reopening for now, would like to keep this open until I get this in the test suite for all platforms and explicitly documented.
I would like to make another comment about the code above: it seems to me like the code assumes that there will never be more than 1 record that matches the SELECT statement. I would have added something else to ensure that this is always the case. Recommended: use constraints in CREATE TABLE. This is very common practice and there is plenty of documentation available including:
It would also be possible to check this after the fact, using assertion or error logging in case of r.rows.length > 1 (Sentry.io is highly recommended for logging internal errors).
When the query has no result, some error occurs inside the item(0) function and break code.
Else dont run.
Returning the promise without displaying error?
How to execute a code if the select returns empty?
The text was updated successfully, but these errors were encountered: