Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update env config in Master #53

Merged
merged 2 commits into from
Aug 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .env.default
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ RABBITMQ_PASSWORD=alkemio!
RABBITMQ_PORT=5672
RABBITMQ_INGEST_SPACE_QUEUE=virtual-contributor-ingest-space
RABBITMQ_INGEST_SPACE_RESULT_QUEUE=virtual-contributor-ingest-space-result
RABBITMQ_EXCHANGE=event-bus
RABBITMQ_EVENT_BUS_EXCHANGE=event-bus

API_ENDPOINT_PRIVATE_GRAPHQL='http://localhost:3000/api/private/non-interactive/graphql'
AUTH_ORY_KRATOS_PUBLIC_BASE_URL=http://localhost:3000/ory/kratos/public
Expand Down
2 changes: 1 addition & 1 deletion src/event.bus/connection.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ export class Connection {
port: this.getEnvValue('RABBITMQ_PORT'),
incomingQueue: this.getEnvValue('RABBITMQ_INGEST_SPACE_QUEUE'),
outgoingQueue: this.getEnvValue('RABBITMQ_INGEST_SPACE_RESULT_QUEUE'),
exchange: this.getEnvValue('RABBITMQ_EXCHANGE'),
exchange: this.getEnvValue('RABBITMQ_EVENT_BUS_EXCHANGE'),
};
}

Expand Down
3 changes: 0 additions & 3 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,6 @@ import { embedSpace } from './space.embed/embed.space';
const connection = await Connection.get();

connection.consume(async (event: IngestSpace) => {
//TODO create event class matching the one from Server
//maybe share them in a package
//publish a confifrmation
logger.info(`Ingest invoked for space: ${event.spaceId}`);
const resultEvent = await embedSpace(event);
// add rety mechanism as well
Expand Down
Loading