mirror of
https://github.com/balzack/databag.git
synced 2025-02-14 20:49:16 +00:00
first run record name cleanup
This commit is contained in:
parent
2c3d5d4d3d
commit
358ef7cfb0
@ -45,13 +45,11 @@ export function useStoreContext() {
|
|||||||
await db.current.executeSql("INSERT OR REPLACE INTO app (key, value) values (?, ?);", [dataId, encodeObject(profile)]);
|
await db.current.executeSql("INSERT OR REPLACE INTO app (key, value) values (?, ?);", [dataId, encodeObject(profile)]);
|
||||||
},
|
},
|
||||||
getFirstRun: async (guid) => {
|
getFirstRun: async (guid) => {
|
||||||
const dataId = `${guid}_first_run`;
|
const firstRun = await getAppValue(db.current, "firstrun", { set: true });
|
||||||
const firstRun = await getAppValue(db.current, dataId, { set: true });
|
|
||||||
return firstRun.set;
|
return firstRun.set;
|
||||||
},
|
},
|
||||||
setFirstRun: async (guid) => {
|
setFirstRun: async () => {
|
||||||
const dataId = `${guid}_first_run`;
|
await db.current.executeSql("INSERT OR REPLACE INTO app (key, value) values (?, ?);", ["firstrun", encodeObject({ set: false })]);
|
||||||
await db.current.executeSql("INSERT OR REPLACE INTO app (key, value) values (?, ?);", [dataId, encodeObject({ set: false })]);
|
|
||||||
},
|
},
|
||||||
getCardRequestStatus: async (guid) => {
|
getCardRequestStatus: async (guid) => {
|
||||||
const dataId = `${guid}_card_status`;
|
const dataId = `${guid}_card_status`;
|
||||||
|
Loading…
Reference in New Issue
Block a user