Allow search page by highlight or label id

This commit is contained in:
Hongbo Wu 2022-08-03 18:50:21 +08:00
parent fa97c9511c
commit 8f50285ad5

View file

@ -274,7 +274,7 @@ export const deletePage = async (
}
export const getPageByParam = async <K extends keyof ParamSet>(
param: Record<K, Page[K]>,
param: Record<K, ParamSet[K]>,
includeOriginalHtml = false
): Promise<Page | undefined> => {
try {
@ -506,7 +506,7 @@ export const countByCreatedAt = async (
}
export const deletePagesByParam = async <K extends keyof ParamSet>(
param: Record<K, Page[K]>,
param: Record<K, ParamSet[K]>,
ctx: PageContext
): Promise<boolean> => {
try {