feat: some shit
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user