Skip to content
Snippets Groups Projects
Commit 92ffb5c2 authored by Felipe D'Abrantes's avatar Felipe D'Abrantes
Browse files

Add a toString method to the Daily model (#19)

parent bae6e1cd
No related branches found
No related tags found
1 merge request!14Add endpoints to manage Dailies
......@@ -31,4 +31,7 @@ object Daily {
def getAllDailies(): Future[Seq[Daily]] = {
dailyRepo.getAllDailies()
}
def toString(daily: Daily): String =
return s"Daily(${daily.id.toString()}, ${daily.userId.toString()}, ${daily.questionId.toString()}, ${daily.content}, ${daily.likes})"
}
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