On gitter one user reported an undefined fromColumnName issue. This is the text:
when running unit test with seneca-postresql-store, I got these error
1) user profile test happy:
Uncaught TypeError: Cannot read property 'fromColumnName' of undefined
at Object.internals.transformDBRowToJSObject (node_modules/seneca-postgresql-store/lib/postgresql-store.js:299:26)
at node_modules/seneca-postgresql-store/lib/postgresql-store.js:184:35
at .<anonymous> (node_modules/seneca-postgresql-store/lib/postgresql-store.js:123:18)
I check source and need to work around to fix this issue
internals.transformDBRowToJSObject = function (row) {
var obj = {}
// here where I work around
if (StandardQuery == null) {
StandardQuery = seneca.export('standard-query/utils')
}
for (var attr in row) {
if (row.hasOwnProperty(attr)) {
obj[StandardQuery.fromColumnName(attr)] = row[attr]
}
}
return obj
}
On gitter one user reported an undefined fromColumnName issue. This is the text:
when running unit test with seneca-postresql-store, I got these error
I check source and need to work around to fix this issue