(id)
| 30 | }; |
| 31 | |
| 32 | const checkShowHome = (id) => { |
| 33 | return new Promise((resolve, reject) => { |
| 34 | db.transaction((tx) => { |
| 35 | tx.executeSql( |
| 36 | "SELECT * FROM change_navigation where id=?;", |
| 37 | [id], |
| 38 | (_, { rows }) => { |
| 39 | if (rows.length > 0) resolve(rows._array[0]); |
| 40 | else reject("Obj not found: id=" + id); |
| 41 | }, |
| 42 | (_, error) => reject(error) |
| 43 | ); |
| 44 | }); |
| 45 | }); |
| 46 | }; |
| 47 | |
| 48 | export default { |
| 49 | setShowHome, |
nothing calls this directly
no outgoing calls
no test coverage detected