From ae2d636e80b6d010be6982e78cb92733485e47f3 Mon Sep 17 00:00:00 2001 From: Zef Hemel Date: Sun, 7 Jul 2024 10:35:17 +0200 Subject: [PATCH] Force space reindex on upgrade to incorporate new indexing features --- common/space_index.ts | 2 +- plug-api/lib/frontmatter.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/common/space_index.ts b/common/space_index.ts index 199e4c1c..2088038a 100644 --- a/common/space_index.ts +++ b/common/space_index.ts @@ -4,7 +4,7 @@ import { System } from "$lib/plugos/system.ts"; const indexVersionKey = ["$indexVersion"]; // Bump this one every time a full reinxex is needed -const desiredIndexVersion = 4; +const desiredIndexVersion = 5; let indexOngoing = false; diff --git a/plug-api/lib/frontmatter.ts b/plug-api/lib/frontmatter.ts index ca4b39af..b92bc713 100644 --- a/plug-api/lib/frontmatter.ts +++ b/plug-api/lib/frontmatter.ts @@ -73,7 +73,7 @@ export async function extractFrontmatter( const yamlText = renderToText(yamlNode); try { const parsedData: any = await YAML.parse(yamlText); - console.log("Parsed front matter", parsedData); + // console.log("Parsed front matter", parsedData); const newData = { ...parsedData }; data = { ...data, ...parsedData }; // Make sure we have a tags array