Skip to content
This repository was archived by the owner on Oct 21, 2024. It is now read-only.

Commit 20215e7

Browse files
author
kahverengi
committed
Fix CreateShareLinkAPI for not getting id as body
1 parent a28182f commit 20215e7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/main/kotlin/com/parnote/route/api/CreateShareLinkAPI.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ class CreateShareLinkAPI : LoggedInApi() {
1818
override fun getHandler(context: RoutingContext, handler: (result: Result) -> Unit) {
1919
val data = context.bodyAsJson
2020

21-
val noteID = data.getInteger("noteID")
21+
val noteID = data.getInteger("id")
2222

2323
databaseManager.createConnection { sqlConnection, _ ->
2424
if (sqlConnection == null) {

0 commit comments

Comments
 (0)