feat: add migration script for generate token route

This commit is contained in:
prafull-opensignlabs
2024-01-16 17:43:42 +05:30
parent 9500b2d678
commit eefaf5fe50
6 changed files with 740 additions and 68 deletions
@@ -43,7 +43,9 @@ async function DocumentAftersave(request) {
if (signers && signers.length > 0) {
await updateAclDoc(request.object.id);
} else {
await updateSelfDoc(request.object.id);
if (request?.object?.id) {
await updateSelfDoc(request.object.id);
}
}
} else {
if (request.user) {
@@ -51,7 +53,9 @@ async function DocumentAftersave(request) {
if (signers && signers.length > 0) {
await updateAclDoc(request.object.id);
} else {
await updateSelfDoc(request.object.id);
if (request?.object?.id) {
await updateSelfDoc(request.object.id);
}
}
}
}