- "(added, uid, " + (!!c.to ? "target, " : "") +
- "vid, fen, timeControl) VALUES " +
- "(" + Date.now() + "," + c.uid + "," + (!!c.to ? c.to + "," : "") +
- c.vid + ",'" + c.fen + "','" + c.timeControl + "')";
- db.run(query, err => {
- return cb(err, {cid: this.lastID});
+ "(added, uid, " + (c.to ? "target, " : "") +
+ "vid, randomness, fen, cadence) " +
+ "VALUES " +
+ "(" + Date.now() + "," + c.uid + "," + (c.to ? c.to + "," : "") +
+ c.vid + "," + c.randomness + ",'" + c.fen + "','" + c.cadence + "')";
+ db.run(query, function(err) {
+ cb(err, {cid: this.lastID});