make sure it can build
This commit is contained in:
1 parent
f527b810b6
commit
25585aa3da
3 files changed
+9
-22
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user