MCPcopy Create free account
hub / github.com/OneBitCodeBlog/onebitlife / checkShowHome

Function checkShowHome

src/Services/ChangeNavigationService.js:32–46  ·  view source on GitHub ↗
(id)

Source from the content-addressed store, hash-verified

30};
31
32const 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
48export default {
49 setShowHome,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected