From ff0a9ea03a51a5e1865281c4f50cb0a9dae6b9ab Mon Sep 17 00:00:00 2001 From: siwonpada Date: Mon, 17 Jun 2024 22:50:45 +0900 Subject: [PATCH] hot fix: search crawls --- src/notice/notice.repository.ts | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/src/notice/notice.repository.ts b/src/notice/notice.repository.ts index 83fdda6..fee50a7 100644 --- a/src/notice/notice.repository.ts +++ b/src/notice/notice.repository.ts @@ -55,6 +55,16 @@ export class NoticeRepository { ...(search ? { OR: [ + { + cralws: { + some: { + OR: [ + { title: { contains: search } }, + { body: { contains: search } }, + ], + }, + }, + }, { contents: { some: { @@ -120,6 +130,16 @@ export class NoticeRepository { ...(search ? { OR: [ + { + cralws: { + some: { + OR: [ + { title: { contains: search } }, + { body: { contains: search } }, + ], + }, + }, + }, { contents: { some: {