Force space reindex on upgrade to incorporate new indexing features

pull/925/head
Zef Hemel 2024-07-07 10:35:17 +02:00
parent 7ddd7c4011
commit ae2d636e80
2 changed files with 2 additions and 2 deletions

View File

@ -4,7 +4,7 @@ import { System } from "$lib/plugos/system.ts";
const indexVersionKey = ["$indexVersion"]; const indexVersionKey = ["$indexVersion"];
// Bump this one every time a full reinxex is needed // Bump this one every time a full reinxex is needed
const desiredIndexVersion = 4; const desiredIndexVersion = 5;
let indexOngoing = false; let indexOngoing = false;

View File

@ -73,7 +73,7 @@ export async function extractFrontmatter(
const yamlText = renderToText(yamlNode); const yamlText = renderToText(yamlNode);
try { try {
const parsedData: any = await YAML.parse(yamlText); const parsedData: any = await YAML.parse(yamlText);
console.log("Parsed front matter", parsedData); // console.log("Parsed front matter", parsedData);
const newData = { ...parsedData }; const newData = { ...parsedData };
data = { ...data, ...parsedData }; data = { ...data, ...parsedData };
// Make sure we have a tags array // Make sure we have a tags array