make sure it can build

This commit is contained in:
polv committed 2020-12-17 23:44:06 +07:00
1 parent f527b810b6
commit 25585aa3da
3 files changed
+9 -22

No files matched your search

+2 -1
View File
@@ -1,4 +1,4 @@
import { dbPost, idx, initDatabase } from './db'
import { dbPost, idx, initDatabase, initLunr } from './db'
export async function doSearch ({
q,
@@ -10,6 +10,7 @@ export async function doSearch ({
page?: number
}) {
await initDatabase()
await initLunr()
const perPage = 5
const offset = (page - 1) * perPage