@@ -384,7 +384,11 @@ router
384384 routePath : basePath + "/comment/edit" ,
385385 status : "Success" ,
386386 description : "Edit annotation comment " + req . queryParams . id ,
387- extra : note ,
387+ extra : {
388+ title : note . new . title ,
389+ creator : note . new . creator ,
390+ comments : note . new . comments ,
391+ } ,
388392 } ) ;
389393 } ,
390394 } ) ;
@@ -396,7 +400,7 @@ router
396400 routePath : basePath + "/comment/edit" ,
397401 status : "Failure" ,
398402 description : "Edit an annotation comment " + req . queryParams . id ,
399- extra : note ,
403+ extra : note . new ,
400404 error : e ,
401405 } ) ;
402406 g_lib . handleException ( e , res ) ;
@@ -481,7 +485,11 @@ router
481485 routePath : basePath + "/view" ,
482486 status : "Success" ,
483487 description : "View annotation " + req . queryParams . id ,
484- extra : note ,
488+ extra : {
489+ title : note . title ,
490+ creator : note . creator ,
491+ comments : note . comments ,
492+ } ,
485493 } ) ;
486494 } catch ( e ) {
487495 logger . logRequestFailure ( {
@@ -491,7 +499,11 @@ router
491499 routePath : basePath + "/view" ,
492500 status : "Failure" ,
493501 description : "View annotation " + req . queryParams . id ,
494- extra : note ,
502+ extra : {
503+ title : note ?. title ,
504+ creator : note ?. creator ,
505+ comments : note ?. comments ,
506+ } ,
495507 error : e ,
496508 } ) ;
497509
@@ -579,7 +591,7 @@ router
579591 let id = null ;
580592 const purgedIds = [ ] ;
581593 try {
582- client = g_lib . getUserFromClientID_noexcept ( req . queryParams . client ) ;
594+ client = req . queryParams ? .client ;
583595 logger . logRequestStarted ( {
584596 client : client ?. _id ,
585597 correlationId : req . headers [ "x-correlation-id" ] ,
0 commit comments