voterunner

quick and dirty votes and discussions
git clone https://git.ce9e.org/voterunner.git

commit
b09ad060dfdfc3fcf513588f1d4939915d5238b8
parent
2512ebe0abeb750dc27cc5cf67c0b95c1866464b
Author
Tobias Bengfort <tobias.bengfort@posteo.de>
Date
2017-11-18 09:27
fix interpolation with sqlite

Diffstat

M app.js 4 ++++

1 files changed, 4 insertions, 0 deletions


diff --git a/app.js b/app.js

@@ -35,6 +35,10 @@ process.on('exit', (code) => {
   35    35 });
   36    36 
   37    37 var queryDB = function(sql, data) {
   -1    38 	if (DATABASE_URL.match(/^sqlite/)) {
   -1    39 		sql = sql.replace(/\$/g, '?');
   -1    40 	}
   -1    41 
   38    42 	return new Promise(function(resolve, reject) {
   39    43 		var q = db.query(sql, data, function(err, res) {
   40    44 			if (err) {