Skip to content
Snippets Groups Projects
Commit c1308434 authored by Sineha Manivannan's avatar Sineha Manivannan
Browse files

changed messages

parents ba97e0cf 8bc2a312
No related branches found
No related tags found
1 merge request!6sprint1sineha
gradlew 100644 → 100755
File mode changed from 100644 to 100755
......@@ -25,13 +25,13 @@ fun Route.createLecture(
val areFieldsBlank = request.name.isBlank();
val existingLecture = lectureDataSource.getLectureByName(request.name)
val existingUser = lectureDataSource.getLectureByName(request.name)
if (areFieldsBlank) { // All user fields must be filled in
call.respond(HttpStatusCode.Conflict, "Some fields are blank!");
return@post
}
else if (existingLecture != null) {
else if (existingUser != null) {
call.respond(HttpStatusCode.Conflict, "Lecture exists.");
return@post
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment