nuxeo-development-framework 6.2.8 → 6.2.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -43647,21 +43647,26 @@ class SignaturesService extends BaseService {
|
|
|
43647
43647
|
const props = { 'file:content': batch[0].blob };
|
|
43648
43648
|
return this.documentsService
|
|
43649
43649
|
.createVersion(document.uid, 'minor', this.operations.createVersion, versionCustomParams)
|
|
43650
|
-
.pipe(take$1(1), switchMap$1(() =>
|
|
43651
|
-
|
|
43652
|
-
|
|
43653
|
-
|
|
43650
|
+
.pipe(take$1(1), switchMap$1(() => {
|
|
43651
|
+
if (updateDocumentAfterSave) {
|
|
43652
|
+
return this.documentsService.updateDocument({
|
|
43653
|
+
...document,
|
|
43654
|
+
properties: props
|
|
43655
|
+
});
|
|
43656
|
+
}
|
|
43657
|
+
else {
|
|
43658
|
+
return of(batch);
|
|
43659
|
+
}
|
|
43660
|
+
}
|
|
43661
|
+
// iif(
|
|
43662
|
+
// () => updateDocumentAfterSave,
|
|
43663
|
+
// this.documentsService.updateDocument({
|
|
43654
43664
|
// ...document,
|
|
43655
43665
|
// properties: props
|
|
43656
|
-
// })
|
|
43657
|
-
//
|
|
43658
|
-
//
|
|
43659
|
-
|
|
43660
|
-
// }
|
|
43661
|
-
iif(() => updateDocumentAfterSave, this.documentsService.updateDocument({
|
|
43662
|
-
...document,
|
|
43663
|
-
properties: props
|
|
43664
|
-
}), of(batch))), tap$1(() => {
|
|
43666
|
+
// }),
|
|
43667
|
+
// of(batch)
|
|
43668
|
+
// )
|
|
43669
|
+
), tap$1(() => {
|
|
43665
43670
|
this.documentsService.reFetch.next(true);
|
|
43666
43671
|
if (this.operations.audit) {
|
|
43667
43672
|
this.#registerAuditLog(document.uid, 'sign');
|