Added initial support for auto-width lists option

This commit is contained in:
Nadav Tasher 2024-11-28 01:18:51 +02:00
parent f6341de610
commit 0097674fc0
6 changed files with 54 additions and 2 deletions

View file

@ -1489,3 +1489,16 @@ Migrations.add('remove-user-profile-hideCheckedItems', () => {
noValidateMulti,
);
});
Migrations.add('add-default-auto-width-boards', () => {
Users.find().forEach(user => {
if (!user.hasOwnProperty('profile.autoWidths')) {
// Set default auto widths
Users.direct.update(
{ _id: user._id },
{ $set: { 'profile.autoWidths': {} } },
noValidate,
);
}
});
});