(habitArea)
| 77 | }; |
| 78 | |
| 79 | const deleteByName = (habitArea) => { |
| 80 | return new Promise((resolve, reject) => { |
| 81 | db.transaction((tx) => { |
| 82 | tx.executeSql( |
| 83 | "DELETE FROM habits WHERE habitArea=?;", |
| 84 | [habitArea], |
| 85 | (_, { rowsAffected }) => { |
| 86 | resolve(rowsAffected); |
| 87 | }, |
| 88 | (_, error) => reject(error) |
| 89 | ); |
| 90 | }); |
| 91 | }); |
| 92 | }; |
| 93 | |
| 94 | const changeProgress = (obj) => { |
| 95 | return new Promise((resolve, reject) => { |
nothing calls this directly
no outgoing calls
no test coverage detected