Commit 71a71362d2d6b2e7a6699c77a39cfef1c198a40b
1 parent
be366cb32f
Exists in
master
sqlite response
Showing
1 changed file
with
2 additions
and
2 deletions
Show diff stats
src/js/app.js
... | ... | @@ -51,14 +51,14 @@ angular.module('focaSqlite', []) |
51 | 51 | getQuery: function(route, body, type, success) { |
52 | 52 | function callQuery() { |
53 | 53 | |
54 | - if(baseReady) { | |
54 | + if (baseReady) { | |
55 | 55 | |
56 | 56 | var query= "SELECT * FROM querys " + |
57 | 57 | "WHERE route = '" + route + "'" + |
58 | 58 | " and body = '" + body + "'" + |
59 | 59 | " and type = '" + type + "'"; |
60 | 60 | dataBase.executeSql(query, [], function(data) { |
61 | - success(data.rows.item(0).response); | |
61 | + success(data.rows.item(0)); | |
62 | 62 | }, error); |
63 | 63 | } else { |
64 | 64 | setTimeout(function() { |