Skip to content

Commit

Permalink
fix: ensure the payload is passed into the setting
Browse files Browse the repository at this point in the history
I got a bug report where wrong settings where being applied and after
debugging further the saved payload was never used due to the nested
data.
  • Loading branch information
aalemayhu committed Dec 8, 2024
1 parent ffed2fe commit 7f7b0f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/parser/Settings/loadSettingsFromDatabase.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export const loadSettingsFromDatabase = async (
return new Settings(Settings.LoadDefaultOptions());
}

const settings = new Settings(result.payload);
const settings = new Settings(result.payload.payload);
const templates = await DB('templates')
.where({ owner: owner })
.returning(['payload'])
Expand Down

0 comments on commit 7f7b0f5

Please sign in to comment.