Commit a7c737dd authored by Nicolas Frandeboeuf's avatar Nicolas Frandeboeuf Committed by Nicolas Frandeboeuf

Settings: return DB locale setting instead of just the name/value pair

parent f25e9f1d
......@@ -122,10 +122,8 @@ Setting.allWithoutGhost = async function(userId) {
// Add a pair for the locale.
if (!nameSet.has('locale')) {
values.push({
name: 'locale',
value: await Setting.getLocale(userId)
});
const localeSetting = await Setting.findOrCreateDefault(userId, 'locale');
values.push(localeSetting);
}
return values;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment