@@ -94,7 +94,7 @@ open class Comment <T: UuidEntity>(override var requester: Requester): Repositor
|
||||
.getFunction("edit_comment")
|
||||
.sendQuery(
|
||||
"reference" to reference,
|
||||
"id" to comment.target.id,
|
||||
"id" to comment.id,
|
||||
"content" to comment.content
|
||||
)
|
||||
}
|
||||
|
||||
@@ -38,7 +38,7 @@ fun Route.comment(repo: CommentRepository) {
|
||||
assertCan(UPDATE,comment)
|
||||
|
||||
comment.content = call.receiveText()
|
||||
repo.edit(comment as fr.dcproject.entity.Comment<UuidEntity>)
|
||||
repo.edit(comment as CommentEntity<UuidEntity>)
|
||||
|
||||
call.respond(HttpStatusCode.OK, comment)
|
||||
}
|
||||
|
||||
@@ -9,5 +9,6 @@
|
||||
</root>
|
||||
<logger name="org.eclipse.jetty" level="INFO"/>
|
||||
<logger name="com.github.jasync" level="WARN"/>
|
||||
<logger name="fr.postgresjson" level="debug"/>
|
||||
<logger name="io.netty" level="INFO"/>
|
||||
</configuration>
|
||||
|
||||
Reference in New Issue
Block a user