More log
This commit is contained in:
@@ -6,8 +6,8 @@ module.exports.index = function(req, res) {
|
||||
|
||||
pg.connect(secret.url, function(err, client, release) {
|
||||
client.query(
|
||||
"INSERT INTO fpscounter(exp_id, fps) VALUES($1,$2);",
|
||||
[req.session.exp_id, req.body.fps],
|
||||
"INSERT INTO fpscounter(exp_id, fps, time) VALUES($1,$2,to_timestamp($3));",
|
||||
[req.session.exp_id, req.body.fps, req.body.time],
|
||||
function(err, result) {
|
||||
if (err !== null)
|
||||
Log.dberror(err + ' in fps');
|
||||
|
||||
Reference in New Issue
Block a user