feat: some shit

This commit is contained in:
2023-08-07 13:42:00 +02:00
parent aff3019768
commit 990db3ae50
8 changed files with 36 additions and 25 deletions

View File

@@ -12,6 +12,7 @@ import * as cache from "@lib/cache/documents.ts";
import { SILVERBULLET_SERVER } from "@lib/env.ts";
import { fixRenderedMarkdown } from "@lib/helpers.ts";
import { createLogger } from "@lib/log.ts";
import * as typesense from "@lib/typesense.ts";
export type Document = {
name: string;
@@ -37,6 +38,8 @@ export async function getDocuments(): Promise<Document[]> {
const documents = await response.json();
cache.setDocuments(documents);
typesense.synchronize();
return documents;
}