Skip to content

Commit

Permalink
nit: remove logs, add return types
Browse files Browse the repository at this point in the history
  • Loading branch information
GPaoloni committed Oct 8, 2024
1 parent 49b3c28 commit 3ed73db
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 7 deletions.
2 changes: 1 addition & 1 deletion hrm-domain/hrm-core/case/caseReindexService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export const reindexCasesStream = async (
accountSid: HrmAccountId,
dateFrom: string,
dateTo: string,
) => {
): Promise<Transform> => {
const filters = {
createdAt: {
from: formatISO(new Date(dateFrom)),
Expand Down
2 changes: 1 addition & 1 deletion hrm-domain/hrm-core/contact/contactsReindexService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export const reindexContactsStream = async (
accountSid: HrmAccountId,
dateFrom: string,
dateTo: string,
) => {
): Promise<Transform> => {
const searchParameters = {
dateFrom,
dateTo,
Expand Down
5 changes: 0 additions & 5 deletions hrm-domain/hrm-core/jobs/search/publishToSearchIndex.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,7 @@ const publishToSearchIndex = async ({
messageGroupId: string;
}) => {
try {
console.log(
'>>>> publishToSearchIndex invoked with message: ',
JSON.stringify(message),
);
const queueUrl = await getSsmParameter(PENDING_INDEX_QUEUE_SSM_PATH);
console.log('>>>> publishToSearchIndex sending to queue: ', queueUrl);
return await sendSqsMessage({
queueUrl,
message: JSON.stringify(message),
Expand Down

0 comments on commit 3ed73db

Please sign in to comment.