Skip to content

Commit

Permalink
Updated the event and job names
Browse files Browse the repository at this point in the history
  • Loading branch information
nagesh-dixit committed Mar 7, 2024
1 parent 55c511c commit 7205d21
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion new-category-cleanup-job-app/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ const app: Express = express();
app.disable('x-powered-by');

// Define routes
app.use('/nd-connector-job-app', JobRoutes);
app.use('/new-category-cleanup-job-app', JobRoutes);

// Global error handler
app.use(errorMiddleware);
Expand Down
5 changes: 3 additions & 2 deletions new-product-event-app/src/controllers/event.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,14 +47,15 @@ export const post = async (request: Request, response: Response) => {
if (!productId) {
throw new CustomError(
400,
'Bad request: No order id in the Pub/Sub message'
'Bad request: No product id in the Pub/Sub message'
);
}

try {
const envVars = readConfiguration();
let apiRoot = createApiRoot();
const categoryKey:string = readConfiguration().categoryKey;

const categoryId: string = await createApiRoot()
.categories()
.withKey({key: categoryKey})
Expand Down
2 changes: 1 addition & 1 deletion new-product-event-app/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ app.use(bodyParser.json());
app.use(bodyParser.urlencoded({ extended: true }));

// Define routes
app.use('/nd-connector-event-app', EventRoutes);
app.use('/new-product-event-app', EventRoutes);

// Global error handler
app.use(errorMiddleware);
Expand Down

0 comments on commit 7205d21

Please sign in to comment.