Force space reindex on upgrade to incorporate new indexing features
parent
7ddd7c4011
commit
ae2d636e80
|
@ -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;
|
||||||
|
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue