Skip to content

Commit 18784c1

Browse files
authored
Merge pull request #123 from Solux-WebBeing/fix/imminent
๊บผ์ ธ๊บผ์ ธ!
2 parents 65d2e9f + 1fb4162 commit 18784c1

File tree

1 file changed

+1
-11
lines changed

1 file changed

+1
-11
lines changed

โ€Žbackend/src/controllers/search.controller.jsโ€Ž

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -224,16 +224,6 @@ const commonSort = [
224224
type: "number",
225225
script: {
226226
lang: "painless",
227-
source: `
228-
if (doc['end_date'].size() == 0) return 20; // ์ƒ์‹œ
229-
230-
long end = doc['end_date'].value.toInstant().toEpochMilli();
231-
232-
if (end < params.now) return 30; // ๋งˆ๊ฐ
233-
if (end >= params.dayStart && end <= params.dayEnd) return 0; // ์˜ค๋Š˜
234-
return 10; // ๋ฏธ๋ž˜
235-
`
236-
/*
237227
source: `
238228
if (doc['end_date'].size() == 0) return 2; // ์ƒ์‹œ
239229
@@ -247,7 +237,7 @@ const commonSort = [
247237
248238
// ๋ฏธ๋ž˜ ๋งˆ๊ฐ
249239
return 1;
250-
`,*/,
240+
`,
251241
params: getSortParams()
252242
},
253243
order: "asc"

0 commit comments

Comments
ย (0)