Skip to content
This repository has been archived by the owner on Jun 29, 2022. It is now read-only.

First prototype #5

Merged
merged 6 commits into from
May 23, 2022
Merged
Show file tree
Hide file tree
Changes from 3 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
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,8 @@ Microservice Gesundheitsportal
- npx prisma db push

### Database Connection
<<<<<<< HEAD
- Dotenv -> DATABASE_URL
=======
- Dotenv -> DATABASE_URL
>>>>>>> 84bab5aa40a7a33e815b29f4ed8c4d438a0931b5
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wieso sind hier noch unsolved merge conflicts drin?

9 changes: 0 additions & 9 deletions backend/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,6 @@ async function bootstrap() {

const app = await NestFactory.create(AppModule, { cors: true });

const options = new DocumentBuilder()
.setTitle('Gesundheitsportal-Backend')
.setDescription('Dokumentation für das Gesundheitsportal-Backend')
.setVersion('1.0')
.build();

const document = SwaggerModule.createDocument(app, options);
SwaggerModule.setup('/docs', app, document);

await app.listen(8080);
console.log("[Nest] Api - " + "http://localhost:8080/docs")

Expand Down
2 changes: 1 addition & 1 deletion backend/src/rabbitmq/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export async function listen(queueName: string, routingKey: any, callback: any)
const connection = await getConnection()
const channel = await connection.createChannel()

await channel.assertExchange(process.env.EXCHANGE, "topic", {durable: false})
await channel.assertExchange(process.env.EXCHANGE, "topic", {durable: true})

const queue = await channel.assertQueue("", {durable: true, exclusive: true})
await channel.bindQueue(queue.queue, process.env.EXCHANGE, routingKey)
Expand Down