Skip to content

Commit

Permalink
feat(next/api): remove search v2 flag
Browse files Browse the repository at this point in the history
  • Loading branch information
sdjdd committed Jan 4, 2024
1 parent d92e9e6 commit d63b2d1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions next/api/src/service/search-ticket.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ export class SearchTicketService {
private syncQueue?: Queue<SyncTicketSearchDocumentJobData>;

constructor() {
const { ELASTICSEARCH_URL_SEARCH, ENABLE_SEARCH_V2, LEANCLOUD_APP_ID } = process.env;
if (ELASTICSEARCH_URL_SEARCH && ENABLE_SEARCH_V2) {
const { ELASTICSEARCH_URL_SEARCH, LEANCLOUD_APP_ID } = process.env;
if (ELASTICSEARCH_URL_SEARCH) {
this.esClient = new Client({
node: ELASTICSEARCH_URL_SEARCH,
});
Expand Down

0 comments on commit d63b2d1

Please sign in to comment.