From 6f931edc6033f55c3975df453489ddafd3e09d77 Mon Sep 17 00:00:00 2001
From: OZGCloud <ozgcloud@mgm-tp.com>
Date: Wed, 12 Jan 2022 16:15:57 +0100
Subject: [PATCH] OZG-1040 disable async to fix e2e tests

---
 .../java/de/itvsh/goofy/postfach/PostfachMailService.java  | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/goofy-server/src/main/java/de/itvsh/goofy/postfach/PostfachMailService.java b/goofy-server/src/main/java/de/itvsh/goofy/postfach/PostfachMailService.java
index 789ebe855a..2e9ad0fe15 100644
--- a/goofy-server/src/main/java/de/itvsh/goofy/postfach/PostfachMailService.java
+++ b/goofy-server/src/main/java/de/itvsh/goofy/postfach/PostfachMailService.java
@@ -4,7 +4,6 @@ import java.util.Objects;
 import java.util.stream.Stream;
 
 import org.springframework.beans.factory.annotation.Autowired;
-import org.springframework.scheduling.annotation.Async;
 import org.springframework.stereotype.Service;
 
 import de.itvsh.goofy.common.errorhandling.ResourceNotFoundException;
@@ -19,7 +18,8 @@ class PostfachMailService {
 	@Autowired
 	private PostfachMailRemoteService remoteService;
 
-	@Async
+	// TODO reenable async
+//	@Async
 	public void sendPostfachMail(String commandId, PostfachMail postfachMail) {
 		try {
 			remoteService.sendPostfachMail(commandId, postfachMail);
@@ -39,7 +39,8 @@ class PostfachMailService {
 
 	}
 
-	@Async
+	// TODO reenable async
+//	@Async
 	public void resendPostfachMail(String commandId, String postfachMailId) {
 		try {
 			remoteService.resendPostfachMail(commandId, postfachMailId);
-- 
GitLab