From bc1e2b439730bc206a115855635d27f0ee6b1118 Mon Sep 17 00:00:00 2001 From: Andrew Lalis Date: Fri, 24 Mar 2023 13:18:30 +0100 Subject: [PATCH] Cleaned up api dev start. --- gymboard-api/gen_keys.d | 1 - .../andrewlalis/gymboard_api/domains/auth/model/UserReport.java | 2 ++ gymboard-api/start-dev.sh | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) 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