CLI client

This commit is contained in:
2026-08-04 20:37:53 +02:00
parent a10423b015
commit cd8bbe5687
4 changed files with 199 additions and 12 deletions
@@ -65,7 +65,7 @@ object ProjectHandler {
}
fun createProject(user: User, req: ProjectRequest) = transaction {
if(user.projectLimit != -1 && (user.projectLimit >= user.projects.count()))
if(user.projectLimit != -1 && (user.projects.count() >= user.projectLimit))
throw RouteError("You have reached your project limit.", HttpStatusCode.Conflict)
val proj = Project.new {