Skip to content
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
5 changes: 2 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,5 @@ jobs:
distribution: 'temurin'
cache: 'maven'

- name: Build with Maven
# im using -DskipTests for now the DB environment variables aren't on GitHub runner yet
run: mvn clean package -DskipTests
- name: Build and test with Maven
run: mvn clean verify
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package net.hackyourfuture.tickettrackingsystem.service;

import jakarta.annotation.PostConstruct;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Value;
Expand All @@ -14,12 +15,13 @@
public class EmailService {

private static final Logger logger = LoggerFactory.getLogger(EmailService.class);
private final RestClient restClient;
private RestClient restClient;

@Value("${resend.api.key}")
private String apiKey;

public EmailService() {
@PostConstruct
public void init() {
this.restClient = RestClient.builder()
.baseUrl("https://api.resend.com")
.build();
Expand Down
Loading