diff --git a/src/lib/adapters/sqlite3.js b/src/lib/adapters/sqlite3.js index 9829088..696cf41 100644 --- a/src/lib/adapters/sqlite3.js +++ b/src/lib/adapters/sqlite3.js @@ -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: { diff --git a/src/lib/db.js b/src/lib/db.js index 99c1b85..c672d12 100644 --- a/src/lib/db.js +++ b/src/lib/db.js @@ -46,5 +46,5 @@ export function settingsSave(data) { } export async function settingsLoad() { const data = await adapter.settingsRetrive() - return data.value + return data }