Skip to content

Commit

Permalink
fix: return empty object if settings are null
Browse files Browse the repository at this point in the history
  • Loading branch information
bjarneo committed Apr 14, 2024
1 parent 2b311a3 commit e1aef84
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/controllers/admin/settings.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ async function settings(fastify) {
},
});

return settings;
return settings || {};
}
);

Expand Down

0 comments on commit e1aef84

Please sign in to comment.