Fix device detail page only showing one message, Device Name still broken, though, related to issue #26.
This commit is contained in:
parent
35f34fedbb
commit
8b460770a7
@ -138,7 +138,7 @@ app.get('/core/:id', function(req, res){
|
||||
var d = new Date();
|
||||
var coreId = req.params.id;
|
||||
console.log("GET /core/" + coreId + ", " + JSON.stringify(d, 4));
|
||||
db.all("SELECT coreId, published_at, status, max(coreName) FROM Alerts WHERE coreId = ? ORDER BY published_at DESC LIMIT 30;", coreId, function(err, rows){
|
||||
db.all("SELECT coreId, published_at, status, coreName FROM Alerts WHERE coreId = ? ORDER BY published_at DESC LIMIT 30;", coreId, function(err, rows){
|
||||
if(err !== null) {
|
||||
console.log(err);
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user