fix: use configured furni source and catalog assets

This commit is contained in:
Simo committed 2026-08-02 14:22:05 +02:00
1 parent aed70db81f
commit c78f8812ad
25 files changed
+368 -129

No files matched your search

+3 -3
View File
@@ -12,7 +12,7 @@ import {
normalizeHabboGamedataHotel,
} from "@/lib/habbo-gamedata-hotel";
import { PERMS } from "@/lib/permissions";
import { clearHabboItCache } from "@/lib/services/habbo-furnidata-cache";
import { clearOfficialHabboFurnidataCache } from "@/lib/services/habbo-furnidata-cache";
import { clearBadgeCache } from "@/lib/services/habboassets";
import { siteSettings } from "@/lib/services/site-settings";
@@ -27,7 +27,7 @@ function normalizeSettingValue(key: string, value: string): string {
function bustGamedataCachesIfNeeded(key: string): void {
if (key === HABBO_GAMEDATA_HOTEL_SETTING_KEY) {
clearHabboItCache();
clearOfficialHabboFurnidataCache();
clearBadgeCache();
}
}
@@ -57,7 +57,7 @@ export const saveManagedSettings = adminAction(
);
await siteSettings.reload();
if (entries.some(([key]) => key === HABBO_GAMEDATA_HOTEL_SETTING_KEY)) {
clearHabboItCache();
clearOfficialHabboFurnidataCache();
clearBadgeCache();
}
revalidatePath("/admin/settings");