Reorganize backup configs

This commit is contained in:
Cohee
2025-01-05 16:03:52 +02:00
parent 989f5a8692
commit 9db9c5c9ca
4 changed files with 40 additions and 14 deletions

View File

@@ -44,6 +44,26 @@ const keyMigrationMap = [
newKey: 'thumbnails.format',
migrate: (value) => (value ? 'png' : 'jpg'),
},
{
oldKey: 'disableChatBackup',
newKey: 'backups.chat.enabled',
migrate: (value) => !value,
},
{
oldKey: 'numberOfBackups',
newKey: 'backups.common.numberOfBackups',
migrate: (value) => value,
},
{
oldKey: 'maxTotalChatBackups',
newKey: 'backups.chat.maxTotalBackups',
migrate: (value) => value,
},
{
oldKey: 'chatBackupThrottleInterval',
newKey: 'backups.chat.throttleInterval',
migrate: (value) => value,
},
];
/**