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
Be aware that Object.keys and Object.values return keys and values, respectively, in an arbitrary order. V8 (and therefore Node) return them in insertion order, so you should be fine as long as your input object is constructed with the keys in the order that they're specified in the query, though frankly, this introduces an unnecessary coupling between the function and its calling code.
You can fix this in three ways: either have positional arguments in the postMemberInfo function, or deconstruct the input object, or construct the SQL query string dynamically from the input object. The second option is probably simplest.
The text was updated successfully, but these errors were encountered:
stackMatch/src/model/queries/postMemberInfo.js
Line 4 in a84d27c
Be aware that
Object.keys
andObject.values
return keys and values, respectively, in an arbitrary order. V8 (and therefore Node) return them in insertion order, so you should be fine as long as your input object is constructed with the keys in the order that they're specified in the query, though frankly, this introduces an unnecessary coupling between the function and its calling code.You can fix this in three ways: either have positional arguments in the postMemberInfo function, or deconstruct the input object, or construct the SQL query string dynamically from the input object. The second option is probably simplest.
The text was updated successfully, but these errors were encountered: