1
This commit is contained in:
Alex Yatskov 2015-09-23 10:42:26 +09:00
parent a5ebab5bc9
commit 480408b9cd
2 changed files with 1 additions and 3 deletions

View File

@ -340,7 +340,7 @@ func handleAccessReview(rw http.ResponseWriter, req *http.Request) {
return return
} }
historyResult, err := db.Exec("INSERT INTO history(date, reviewId) VALUES(NOW(), ?)", request.Id) historyResult, err := db.Exec("INSERT INTO history(date, reviewId) VALUES(DATETIME('now'), ?)", request.Id)
if err != nil { if err != nil {
http.Error(rw, err.Error(), http.StatusInternalServerError) http.Error(rw, err.Error(), http.StatusInternalServerError)
return return

View File

@ -91,8 +91,6 @@
} }
$.post('/access', JSON.stringify({id: id, profile: getProfile()})); $.post('/access', JSON.stringify({id: id, profile: getProfile()}));
onSearch();
}; };
window.sortReviewsBy = function(sortKey) { window.sortReviewsBy = function(sortKey) {