Skip to content

Commit

Permalink
Reset and additional .gitignore entries
Browse files Browse the repository at this point in the history
  • Loading branch information
RawToast committed Mar 25, 2018
1 parent c02a473 commit f42c237
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
.vscode
.idea
*.iml
target/
project/target/
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,8 @@ class ReadingHistoryRouter(readingHistoryService: ReadingHistoryService) {
result <- json.fold(NotFound())(j => Ok(j))
} yield result
case PUT -> Root / "history" / userId / "reset" =>
for {
storedHistory: UserReadingHistory <- readingHistoryService.reset(userId)
json = storedHistory.asJson
result <- Ok(json)
} yield result
readingHistoryService.reset(userId)
.map(_.asJson)
.flatMap(j => Ok(j))
}
}

0 comments on commit f42c237

Please sign in to comment.