Skip to content

Commit

Permalink
fixed issue with first time settings being under value
Browse files Browse the repository at this point in the history
  • Loading branch information
imagineeeinc committed Oct 8, 2024
1 parent e5af7db commit f24c161
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/lib/adapters/sqlite3.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ export async function retrive() {
return result
}

const defaultSettings = {value: {"adapter": "sqlite3", "logOut": {h: 24, m: 0}}}
const defaultSettings = {"adapter": "sqlite3", "logOut": {h: 24, m: 0}}
let [setting, settingCreated] = await Settings.findOrCreate({
where: { settings_id: 1 },
defaults: {
Expand Down
2 changes: 1 addition & 1 deletion src/lib/db.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,5 +46,5 @@ export function settingsSave(data) {
}
export async function settingsLoad() {
const data = await adapter.settingsRetrive()
return data.value
return data
}

0 comments on commit f24c161

Please sign in to comment.