修正获取github日志bug

This commit is contained in:
luchenqun 2018-02-28 19:32:07 +08:00
parent 093a718677
commit b2c443b041
2 changed files with 2 additions and 2 deletions

2
app.js
View File

@ -34,7 +34,7 @@ app.use(session({
saveUninitialized: true, //
secret: 'ILoveYiJia', // 建议使用 128 个字符的随机字符串
cookie: {
maxAge: 1 * 24 * 60 * 60 * 1000, // 一
maxAge: 7 * 24 * 60 * 60 * 1000, // 一
},
store: new mongoStore({
url: 'mongodb://localhost/mybookmarks'

View File

@ -1089,7 +1089,7 @@ api.post('/getUpdateLog', function(req, res) {
updateLogs.logs = [];
$(this).next().children('li').each(function() {
var $log = $(this).children('.table-list-cell').eq(1).children('p').children('a');
var $log = $(this).children('.table-list-cell').eq(0).children('p').children('a');
var commit = $log.text()
var href = 'https://github.com' + $log.attr('href');