fix: removing unnecessary changes
This commit is contained in:
1 parent
e145068287
commit
206c6df4aa
1 file changed
-2
@@ -83,8 +83,6 @@ export class SettingsService implements ISettingsService {
|
|||||||
|
|
||||||
updateDbSettings = async (newSettings: SettingsUpdate) => {
|
updateDbSettings = async (newSettings: SettingsUpdate) => {
|
||||||
const updated = await this.getRepository().update(newSettings);
|
const updated = await this.getRepository().update(newSettings);
|
||||||
// Only refresh the cache if defaultUserAgent was actually part of the update payload.
|
|
||||||
// `?? null` would clobber the cache on partial updates that don't include this field.
|
|
||||||
if ("defaultUserAgent" in newSettings) {
|
if ("defaultUserAgent" in newSettings) {
|
||||||
this.cachedDefaultUserAgent = newSettings.defaultUserAgent ?? null;
|
this.cachedDefaultUserAgent = newSettings.defaultUserAgent ?? null;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user