Skip to content

Commit

Permalink
fix: relative path to elastic search
Browse files Browse the repository at this point in the history
  • Loading branch information
HungLV46 committed Aug 14, 2024
1 parent 887c509 commit 403fb5f
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 2 deletions.
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"author": "HungLV",
"license": "MIT",
"private": true,
"type": "commonjs",
"scripts": {
"prepare": "husky",
"clean": "rm -rf ./dist tsconfig.tsbuildinfo",
Expand Down Expand Up @@ -66,6 +67,7 @@
"typescript-eslint": "^7.18.0"
},
"imports": {
"#root/*": "./dist/*.js",
"#apis/*": "./dist/apis/*.js",
"#common/*": "./dist/common/*.js",
"#configs/*": "./dist/configs/*.js",
Expand Down
2 changes: 1 addition & 1 deletion src/apis/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import { loggerSetting, logger } from '#common/loggger';
import * as routes from './routes';
import { getAllQueues } from '#jobs/index';
import * as elasticSearchJob from '#jobs/elastic-search/elastic-search-job';
import { initIndexes } from 'elastic-search/indexes';
import { initIndexes } from '#root/elastic-search/indexes/index';
import { Prisma } from '@prisma/client';
import Boom from '@hapi/boom';

Expand Down
2 changes: 1 addition & 1 deletion src/jobs/elastic-search/elastic-search-job.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { redis } from '#common/redis';
import { Worker, Job, Queue } from 'bullmq';
import * as productsIndex from 'elastic-search/indexes/products';
import * as productsIndex from '#root/elastic-search/indexes/products/index';

const QUEUE_NAME = 'products-queue';
const JOB_NAME = 'products-job';
Expand Down
1 change: 1 addition & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
"outDir": "dist",
"baseUrl": "src",
"paths": {
"#root/*": ["./*"],
"#apis/*": ["apis/*"],
"#common/*": ["common/*"],
"#configs/*": ["configs/*"],
Expand Down

0 comments on commit 403fb5f

Please sign in to comment.