init f0ckm

This commit is contained in:
2026-04-25 19:51:52 +02:00
commit b646107eb7
241 changed files with 70364 additions and 0 deletions

13
src/inc/halls_cache.mjs Normal file
View File

@@ -0,0 +1,13 @@
import db from "./sql.mjs";
let hallsCache = [];
export const updateHallsCache = async () => {
try {
hallsCache = await db`SELECT id, name, slug, rating FROM halls ORDER BY name ASC`;
} catch (e) {
console.error('[HALLS CACHE] Failed to update:', e);
}
};
export const getHalls = () => hallsCache;