🔥 The free & Open Source DocuSign alternative
JavaScript digital-signaturedocument-signingdocusign-alternativedocusign-freee-signatureelectronic-signatureelectronic-signaturesesignesignaturehacktoberfestjavascriptlegaltechmongodbnodejsopen-sourcepdf-signpdf-signaturereactjsself-hostedsign-pdf-files
migrate db changes (#199)
prafull-opensignlabs3cfa2639e589
diff --git a/apps/OpenSignServer/cloud/parsefunction/pdf/PDF.min.js b/apps/OpenSignServer/cloud/parsefunction/pdf/PDF.min.jsindex a7d141891..6e0bb6658 100644--- a/apps/OpenSignServer/cloud/parsefunction/pdf/PDF.min.js+++ b/apps/OpenSignServer/cloud/parsefunction/pdf/PDF.min.js@@ -132,7 +132,7 @@ async function PDF(s, r) {: ((a = await axios.get(serverUrl + '/classes/contracts_Users?where=' + m, {headers: {'X-Parse-Application-Id': APPID,- 'X-Parse-Session-Token': s.headers.sessiontoken,+ 'X-Parse-Master-Key': masterKEY,},})),'contracts_Users')@@ -142,7 +142,7 @@ async function PDF(s, r) {(c = await axios.get(serverUrl + '/classes/contracts_Users?where=' + p, {headers: {'X-Parse-Application-Id': APPID,- 'X-Parse-Session-Token': s.headers.sessiontoken,+ 'X-Parse-Master-Key': masterKEY,},})).data && 0 < c.data.results.length? ((a = c), 'contracts_Users')diff --git a/apps/OpenSignServer/databases/migrations/20231110174122-create_setclp.cjs b/apps/OpenSignServer/databases/migrations/20231110174122-update_setclp.cjssimilarity index 70%rename from apps/OpenSignServer/databases/migrations/20231110174122-create_setclp.cjsrename to apps/OpenSignServer/databases/migrations/20231110174122-update_setclp.cjsindex 8db57d426..83f059ef1 100644--- a/apps/OpenSignServer/databases/migrations/20231110174122-create_setclp.cjs+++ b/apps/OpenSignServer/databases/migrations/20231110174122-update_setclp.cjs@@ -32,18 +32,6 @@ exports.up = async Parse => {});return schema.update();-- // const config = new Config(process.env.APP_ID, process.env.PARSE_MOUNT);- // const schema = await config.database.loadSchema();- // await schema.setPermissions('myclass', {- // get: { requiresAuthentication: true },- // find: { requiresAuthentication: true },- // count: { requiresAuthentication: true },- // create: { requiresAuthentication: true },- // update: { requiresAuthentication: true },- // delete: { requiresAuthentication: true },- // addField: {},- // });};/**diff --git a/apps/OpenSignServer/databases/seeders/.gitkeep b/apps/OpenSignServer/databases/seeders/.gitkeepnew file mode 100644index 000000000..e69de29bbdiff --git a/apps/OpenSignServer/index.js b/apps/OpenSignServer/index.jsindex b126fe32f..676d7ce31 100644--- a/apps/OpenSignServer/index.js+++ b/apps/OpenSignServer/index.js@@ -183,24 +183,21 @@ if (!process.env.TESTING) {httpServer.headersTimeout = 100000; // in millisecondshttpServer.listen(port, function () {console.log('parse-server-example running on port ' + port + '.');+ const migrate = `APPLICATION_ID=${process.env.APP_ID} SERVER_URL=${process.env.SERVER_URL} MASTER_KEY=${process.env.MASTER_KEY} npx parse-dbtool migrate`;++ exec(migrate, (error, stdout, stderr) => {+ if (error) {+ console.error(`Error: ${error.message}`);+ return;+ }++ if (stderr) {+ console.error(`Error: ${stderr}`);+ return;+ }+ console.log(`Command output: ${stdout}`);+ });});// This will enable the Live Query real-time serverawait ParseServer.createLiveQueryServer(httpServer);-- const migrate = `APPLICATION_ID=${process.env.APP_ID} SERVER_URL=${process.env.SERVER_URL} MASTER_KEY=${process.env.MASTER_KEY} npx parse-dbtool migrate`;- // 'APPLICATION_ID={legadranaxn} SERVER_URL=http://localhost:8080/app MASTER_KEY=XnAwPDRQQyMr npx parse-dbtool migrate';-- exec(migrate, (error, stdout, stderr) => {- if (error) {- console.error(`Error: ${error.message}`);- return;- }-- if (stderr) {- console.error(`Error: ${stderr}`);- return;- }-- console.log(`Command output: ${stdout}`);- });}