Skip to content

Commit

Permalink
console template/layout b4 creation
Browse files Browse the repository at this point in the history
  • Loading branch information
vdvibhu20 committed Jan 30, 2022
1 parent 9d6d7ea commit 3f7da31
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/plugins/worker/handlers.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ Handlebars.registerHelper('eq', (a,b) => {
module.exports = {
GenerateFromTemplate: app => async ({ data, callback }) => {
try {
console.log('certificateTemplate: ', data.template)

const { bucketName } = await app.mongo.db
.collection('clients')
.findOne({
Expand Down Expand Up @@ -90,6 +92,8 @@ module.exports = {
},
GenerateFromLayout: app => async data => {
try {
console.log('certificateLayout: ',data.layoutId)

const { bucketName } = await app.mongo.db
.collection('clients')
.findOne({
Expand Down

0 comments on commit 3f7da31

Please sign in to comment.