Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
cs346-proj
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Saikrishna Tadepalli
cs346-proj
Commits
c1308434
Commit
c1308434
authored
1 year ago
by
Sineha Manivannan
Browse files
Options
Downloads
Plain Diff
changed messages
parents
ba97e0cf
8bc2a312
No related branches found
No related tags found
1 merge request
!6
sprint1sineha
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
gradlew
+0
-0
0 additions, 0 deletions
gradlew
src/main/kotlin/com/backend/routes/LectureRoutes.kt
+2
-2
2 additions, 2 deletions
src/main/kotlin/com/backend/routes/LectureRoutes.kt
with
2 additions
and
2 deletions
gradlew
100644 → 100755
+
0
−
0
View file @
c1308434
File mode changed from 100644 to 100755
This diff is collapsed.
Click to expand it.
src/main/kotlin/com/backend/routes/LectureRoutes.kt
+
2
−
2
View file @
c1308434
...
...
@@ -25,13 +25,13 @@ fun Route.createLecture(
val
areFieldsBlank
=
request
.
name
.
isBlank
();
val
existing
Lecture
=
lectureDataSource
.
getLectureByName
(
request
.
name
)
val
existing
User
=
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
(
existing
Lecture
!=
null
)
{
else
if
(
existing
User
!=
null
)
{
call
.
respond
(
HttpStatusCode
.
Conflict
,
"Lecture exists."
);
return
@post
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment