2022-12-28 07:51:55 +00:00
|
|
|
import { QueryProviderEvent } from "$sb/app_event.ts";
|
|
|
|
import { applyQuery } from "$sb/lib/query.ts";
|
2023-08-28 15:12:15 +00:00
|
|
|
import { space } from "$sb/syscalls.ts";
|
2022-12-28 07:51:55 +00:00
|
|
|
|
|
|
|
export async function attachmentQueryProvider({ query }: QueryProviderEvent) {
|
|
|
|
return applyQuery(query, await space.listAttachments());
|
|
|
|
}
|