Commit a18fccf8 authored by Johannes Zellner's avatar Johannes Zellner

Amend last release to project listing

parent 0e51053d
......@@ -66,7 +66,7 @@ function projectsList(userId, callback) {
assert.strictEqual(typeof userId, 'string');
assert.strictEqual(typeof callback, 'function');
db.query('SELECT * FROM projects WHERE userId=?', [ userId ], function (error, result) {
db.query('SELECT projects.*,releases.version,releases.createdAt FROM projects INNER JOIN releases on = (SELECT FROM releases WHERE ORDER BY createdAt DESC LIMIT 1) WHERE userId=?', [ userId ], function (error, result) {
if (error) return callback(error);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment