diff --git a/Client/reasn-client/.husky/pre-commit b/Client/reasn-client/.husky/pre-commit index 61749492..1d9a8b60 100644 --- a/Client/reasn-client/.husky/pre-commit +++ b/Client/reasn-client/.husky/pre-commit @@ -3,3 +3,7 @@ (cd ./Client/reasn-client && yarn lint-staged) (cd ./Server/ReasnAPI && dotnet format) +if ! git diff --quiet; then + echo "🚫 dotnet format made changes, commit aborted." + exit 1 +fi \ No newline at end of file diff --git a/Server/ReasnAPI/ReasnAPI/Models/Database/ReasnContext.cs b/Server/ReasnAPI/ReasnAPI/Models/Database/ReasnContext.cs index 041cf80b..98c62d12 100644 --- a/Server/ReasnAPI/ReasnAPI/Models/Database/ReasnContext.cs +++ b/Server/ReasnAPI/ReasnAPI/Models/Database/ReasnContext.cs @@ -60,7 +60,7 @@ protected override void OnModelCreating(ModelBuilder modelBuilder) modelBuilder .Entity() .Property(u => u.ObjectType) - .HasConversion (); + .HasConversion(); modelBuilder .Entity() diff --git a/Server/ReasnAPI/ReasnAPI/Models/Enums/EventStatus.cs b/Server/ReasnAPI/ReasnAPI/Models/Enums/EventStatus.cs index beeb82e1..102991eb 100644 --- a/Server/ReasnAPI/ReasnAPI/Models/Enums/EventStatus.cs +++ b/Server/ReasnAPI/ReasnAPI/Models/Enums/EventStatus.cs @@ -2,8 +2,8 @@ public enum EventStatus { - Completed, - Inprogress, - Approved, + Completed, + Inprogress, + Approved, WaitingForApproval } \ No newline at end of file