Skip to content

Commit

Permalink
fix(notifications): remove async notification sending
Browse files Browse the repository at this point in the history
Signed-off-by: RadovanTomik <[email protected]>
  • Loading branch information
RadovanTomik committed May 21, 2024
1 parent 0fa2488 commit 4c890a5
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 22 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,12 @@
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.domain.EntityScan;
import org.springframework.data.jpa.repository.config.EnableJpaRepositories;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.scheduling.annotation.EnableScheduling;

@SpringBootApplication
@EntityScan(basePackages = {"eu.bbmri_eric.negotiator.database.*"})
@EnableJpaRepositories(basePackages = {"eu.bbmri_eric.negotiator.database.repository"})
@EnableScheduling
@EnableAsync
public class NegotiatorApplication {

public static void main(String[] args) {
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -129,8 +129,6 @@ private boolean isSecurityRuleMet(
creatorId = NegotiatorUserDetailsService.getCurrentlyAuthenticatedUserInternalId();
} catch (ClassCastException e) {
return false;
} catch (NullPointerException e) {
return true;
}
return negotiationRepository.existsByIdAndCreatedBy_Id(negotiationId, creatorId);
} else if (securityRule.getExpression().equals("isRepresentative")) {
Expand Down

0 comments on commit 4c890a5

Please sign in to comment.