mirror of
https://github.com/pewdiepie-archdaemon/odysseus.git
synced 2026-11-01 18:52:21 +01:00
fix(settings): invalidate shared appConfig cache near auth settings write
This commit is contained in:
@@ -26,6 +26,7 @@ export function saveImagePreferences(patch) {
|
||||
method: 'POST', credentials: 'same-origin',
|
||||
headers: { 'Content-Type': 'application/json' }, body: JSON.stringify(patch),
|
||||
});
|
||||
invalidateSettings();
|
||||
if (response.status === 403) {
|
||||
const userEntries = Object.entries(patch).filter(([k]) => USER_PREFERENCE_KEYS.includes(k));
|
||||
for (const [key, value] of userEntries) {
|
||||
|
||||
Reference in New Issue
Block a user