feat: api for createtemplate using base64 and binary

This commit is contained in:
prafull-opensignlabs
2024-01-24 23:17:44 +05:30
parent 07851ccde2
commit 55cfbae8a7
7 changed files with 62 additions and 67 deletions
@@ -13,7 +13,7 @@ export default async function TemplateAfterSave(request) {
}
}
} else {
if (request.user) {
if (request?.user) {
const signers = request.object.get('Signers');
if (signers && signers.length > 0) {
await updateAclDoc(request.object.id);
@@ -112,7 +112,6 @@ async function sendDoctoWebhook(t) {
.post(t?.data?.ExtUserPtr?.Webhook, e, { headers: { 'Content-Type': 'application/json' } })
.then(e => {
try {
console.log('res ', e);
var a = new Parse.Object('contracts_Webhook');
a.set('Log', e?.status),
a.set('UserId', {