mirror of
https://github.com/balzack/databag.git
synced 2025-02-14 12:39:17 +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)]);
|
||||
},
|
||||
getFirstRun: async (guid) => {
|
||||
const dataId = `${guid}_first_run`;
|
||||
const firstRun = await getAppValue(db.current, dataId, { set: true });
|
||||
const firstRun = await getAppValue(db.current, "firstrun", { set: true });
|
||||
return firstRun.set;
|
||||
},
|
||||
setFirstRun: async (guid) => {
|
||||
const dataId = `${guid}_first_run`;
|
||||
await db.current.executeSql("INSERT OR REPLACE INTO app (key, value) values (?, ?);", [dataId, encodeObject({ set: false })]);
|
||||
setFirstRun: async () => {
|
||||
await db.current.executeSql("INSERT OR REPLACE INTO app (key, value) values (?, ?);", ["firstrun", encodeObject({ set: false })]);
|
||||
},
|
||||
getCardRequestStatus: async (guid) => {
|
||||
const dataId = `${guid}_card_status`;
|
||||
|
Loading…
Reference in New Issue
Block a user