spaceshipoperator/redshirts — Issue #2: error after login
Author: McLeopold
Created: 2012-02-20 06:20:16+00:00
State: open

I inserted data directly into the database for my user. Then after login, I get the following error:

/home/scott/redshirts/db/index.js:176
req.session.internships = result.rows;
^
TypeError: Cannot read property 'rows' of undefined
at [object Object].callback (/home/scott/redshirts/db/index.js:176:34)
at [object Object].handleError (/home/scott/redshirts/node_modules/pg/lib/query.js:87:10)
at [object Object]. (/home/scott/redshirts/node_modules/pg/lib/client.js:130:24)
at [object Object].emit (events.js:64:17)
at Socket. (/home/scott/redshirts/node_modules/pg/lib/connection.js:47:12)
at Socket.emit (events.js:64:17)
at Socket._onReadable (net.js:678:14)
at IOWatcher.onReadable [as callback] (net.js:177:10)