Skip to content

Commit

Permalink
Merge pull request microfeed#50 from microfeed/v0.1.1
Browse files Browse the repository at this point in the history
Bug fix: Incorrect settings update
  • Loading branch information
wenbinf authored Feb 14, 2023
2 parents 60cf5ff + 5ca1d3f commit 5448bb8
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions edge-src/models/FeedDb.js
Original file line number Diff line number Diff line change
Expand Up @@ -360,6 +360,7 @@ export default class FeedDb {
let res;
try {
console.log('Trying to update...');
console.log(settings);
res = await this.getUpdateSql(
'settings',
{
Expand Down Expand Up @@ -389,9 +390,9 @@ export default class FeedDb {
}

async _putSettingsToContent(settings) {
Object.keys(settings).forEach((category) => {
this._updateOrAddSetting(settings, category);
});
for (const category of Object.keys(settings)) {
await this._updateOrAddSetting(settings, category);
}
}

async _putItemToContent(item) {
Expand Down

0 comments on commit 5448bb8

Please sign in to comment.