Fix settings change printing

This commit is contained in:
Andras Schmelczer 2025-01-04 14:55:34 +00:00
parent b17e69edda
commit 560e640b1b
No known key found for this signature in database
GPG key ID: FC8F2C3D3D1A718C

View file

@ -88,12 +88,15 @@ export class Database {
key: T,
value: SyncSettings[T]
): Promise<void> {
let newSettings = { ...this._settings, [key]: value };
Logger.getInstance().debug(
`Setting ${key} to ${value}, new settings: ${JSON.stringify(
this._settings
newSettings,
null,
2
)}`
);
await this.setSettings({ ...this._settings, [key]: value });
await this.setSettings(newSettings);
}
public getLastSeenUpdateId(): VaultUpdateId | undefined {