mirror of
https://github.com/frappe/books.git
synced 2025-02-11 00:18:45 +00:00
FIX: PDF generation in production
This commit is contained in:
parent
a35000d820
commit
fcc8061ccd
@ -25,8 +25,7 @@ module.exports = function registerServerMethods() {
|
|||||||
const path = require('path');
|
const path = require('path');
|
||||||
const { getPDFForElectron } = require('frappejs/server/pdf');
|
const { getPDFForElectron } = require('frappejs/server/pdf');
|
||||||
const { getSettings } = require('../electron/settings');
|
const { getSettings } = require('../electron/settings');
|
||||||
const destination = path.resolve('.');
|
getPDFForElectron(doctype, name, undefined, html);
|
||||||
getPDFForElectron(doctype, name, destination, html);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user