Commit 3d8d6db7 authored by kempe's avatar kempe

Fixup variable name change

parent 9e809607
......@@ -115,13 +115,14 @@ function stationExistsByRadIoId(id) {
return results.rows.length === 1
}
function findByRadIoId(radIoId) {
function findByRadIoId(id) {
var results;
console.log("findByRadIoId", radIoId)
console.log("findByRadIoId", id)
openDB();
db.transaction(function(tx) {
results = tx.executeSql("SELECT * FROM stations WHERE radIoId=?", [radIoId]);
results = tx.executeSql("SELECT * FROM stations WHERE radIoId=?", [id]);
});
console.log("STATION EXISTS RESULTS: " + results.rows.length)
return results.rows.item(0);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment