server: reset cache on sync repo

This commit is contained in:
ammarahm-ed
2023-07-10 15:59:55 +05:00
parent b147afbefe
commit a06fa9f00e

View File

@@ -56,7 +56,7 @@ async function generateMetadataJson() {
const files = await readDirAsync(THEMES_PATH);
const ThemesMetadata = [];
const db = await getDB(true);
THEME_METADATA_CACHE = [];
for (const file of files) {
const themeMetadataPath = `${THEMES_PATH}/${file}/theme.json`;
const metadata = JSON.parse(