diff --git a/gymboard-api/gen_keys.d b/gymboard-api/gen_keys.d index 81376d6..4d4e8cd 100755 --- a/gymboard-api/gen_keys.d +++ b/gymboard-api/gen_keys.d @@ -45,5 +45,4 @@ void main() { writeln("No DER public key found. Regenerating it."); genKeys(publicKeyDerFile); } - writeln("All keys are now generated."); } diff --git a/gymboard-api/src/main/java/nl/andrewlalis/gymboard_api/domains/auth/model/UserReport.java b/gymboard-api/src/main/java/nl/andrewlalis/gymboard_api/domains/auth/model/UserReport.java index 5dae63b..86dc774 100644 --- a/gymboard-api/src/main/java/nl/andrewlalis/gymboard_api/domains/auth/model/UserReport.java +++ b/gymboard-api/src/main/java/nl/andrewlalis/gymboard_api/domains/auth/model/UserReport.java @@ -27,6 +27,8 @@ public class UserReport { @Column(length = 1024) private String description; + public UserReport() {} + public UserReport(User user, User reportedBy, String reason, String description) { this.user = user; this.reportedBy = reportedBy; diff --git a/gymboard-api/start-dev.sh b/gymboard-api/start-dev.sh index 3e8e46e..3d44899 100755 --- a/gymboard-api/start-dev.sh +++ b/gymboard-api/start-dev.sh @@ -4,4 +4,5 @@ # should be started via `docker-compose up` in the gymboard root dir. echo "Starting gymboard-api development server." +./gen_keys.d ./mvnw spring-boot:run -Dspring-boot.run.profiles=development