1
0
silverbullet/plugs/index/attachment.ts
2023-08-28 17:12:15 +02:00

8 lines
284 B
TypeScript

import { QueryProviderEvent } from "$sb/app_event.ts";
import { applyQuery } from "$sb/lib/query.ts";
import { space } from "$sb/syscalls.ts";
export async function attachmentQueryProvider({ query }: QueryProviderEvent) {
return applyQuery(query, await space.listAttachments());
}