From 07e77f54f9dc55c8019dd395310cebb0eb7b0d22 Mon Sep 17 00:00:00 2001 From: abeforgit Date: Thu, 22 Jun 2023 10:19:06 +0200 Subject: [PATCH 1/2] fix(prepub): set any signatures that were found For notulen, the VersionedNotulen you sign is not the same as the one you publish. So I had to revert my earlier change to go back to saving any non-empty signedresource relationships. --- app/controllers/meetings/publish/notulen.js | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/app/controllers/meetings/publish/notulen.js b/app/controllers/meetings/publish/notulen.js index a3d7ce0a6..7393dd95a 100644 --- a/app/controllers/meetings/publish/notulen.js +++ b/app/controllers/meetings/publish/notulen.js @@ -103,13 +103,16 @@ export default class MeetingsPublishNotulenController extends Controller { this.notulen = notulen; notulenSet = true; } - this.signedResources = signedResources.toArray(); - if (!notulenSet) { - this.notulen = notulen; + if (signedResources.length) { + this.signedResources = signedResources.slice(); + if (!notulenSet) { + this.notulen = notulen; + } } }) ); } else { + console.log("creating new versioned notulen"); try { const { content, errors } = await this.createPrePublishedResource.perform(); From 1ff1d124b6b37327d2515985518ab376998dea37 Mon Sep 17 00:00:00 2001 From: abeforgit Date: Thu, 22 Jun 2023 10:27:43 +0200 Subject: [PATCH 2/2] chore(prepub): remove console.log --- app/controllers/meetings/publish/notulen.js | 1 - 1 file changed, 1 deletion(-) diff --git a/app/controllers/meetings/publish/notulen.js b/app/controllers/meetings/publish/notulen.js index 7393dd95a..159bf9968 100644 --- a/app/controllers/meetings/publish/notulen.js +++ b/app/controllers/meetings/publish/notulen.js @@ -112,7 +112,6 @@ export default class MeetingsPublishNotulenController extends Controller { }) ); } else { - console.log("creating new versioned notulen"); try { const { content, errors } = await this.createPrePublishedResource.perform();