Skip to content

Commit

Permalink
hot fix: search crawls
Browse files Browse the repository at this point in the history
  • Loading branch information
siwonpada committed Jun 17, 2024
1 parent 5520377 commit ff0a9ea
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions src/notice/notice.repository.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,16 @@ export class NoticeRepository {
...(search
? {
OR: [
{
cralws: {
some: {
OR: [
{ title: { contains: search } },
{ body: { contains: search } },
],
},
},
},
{
contents: {
some: {
Expand Down Expand Up @@ -120,6 +130,16 @@ export class NoticeRepository {
...(search
? {
OR: [
{
cralws: {
some: {
OR: [
{ title: { contains: search } },
{ body: { contains: search } },
],
},
},
},
{
contents: {
some: {
Expand Down

0 comments on commit ff0a9ea

Please sign in to comment.