refactor(EnvelopeController): migrate envelope update to MediatR with annotations
- Renamed `Update` action to `CreateOrUpdate`. - Replaced manual signing logic with `_mediator.SignDocAsync`. - Added `ExpandoObject` parameter to handle document annotations. - Improved authorization checks and logging for missing claims. - Kept legacy `Reject` endpoint intact with obsolete services.
This commit is contained in:
@@ -277,7 +277,6 @@ class App {
|
||||
try {
|
||||
const json = await iJSON
|
||||
const postEnvelopeResult = await this.Network.postEnvelope(
|
||||
this.envelopeKey,
|
||||
this.currentDocument.id,
|
||||
json
|
||||
)
|
||||
|
||||
@@ -15,8 +15,8 @@
|
||||
* @param {any} documentId
|
||||
* @param {any} json
|
||||
*/
|
||||
async postEnvelope(envelopeKey, documentId, json) {
|
||||
return this.postRequest(`/api/envelope/${envelopeKey}?index=${documentId}`, json)
|
||||
async postEnvelope(documentId, json) {
|
||||
return this.postRequest(`/api/envelope?index=${documentId}`, json)
|
||||
.then(this.wrapJsonResponse.bind(this))
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user