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: {