mirror of
https://github.com/pewdiepie-archdaemon/odysseus.git
synced 2026-11-01 02:32: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',
|
method: 'POST', credentials: 'same-origin',
|
||||||
headers: { 'Content-Type': 'application/json' }, body: JSON.stringify(patch),
|
headers: { 'Content-Type': 'application/json' }, body: JSON.stringify(patch),
|
||||||
});
|
});
|
||||||
|
invalidateSettings();
|
||||||
if (response.status === 403) {
|
if (response.status === 403) {
|
||||||
const userEntries = Object.entries(patch).filter(([k]) => USER_PREFERENCE_KEYS.includes(k));
|
const userEntries = Object.entries(patch).filter(([k]) => USER_PREFERENCE_KEYS.includes(k));
|
||||||
for (const [key, value] of userEntries) {
|
for (const [key, value] of userEntries) {
|
||||||
|
|||||||
Reference in New Issue
Block a user