Compare commits

..

No commits in common. "9be3e789a5c3448a5c6c8fc1e868d86eaf9ec9d8" and "cf9cd298b638012e079be0a04d1b48efea20026f" have entirely different histories.

View File

@ -14,10 +14,6 @@ export class PdfCreator {
private templateDir = path.join(__dirname, '/templates');
private browser;
/**
* Main constructor.
* Initializes i18n(ext), Handlebars and puppeteer.
*/
constructor() {
i18next
.use(Backend)
@ -38,11 +34,6 @@ export class PdfCreator {
});
}
/**
* Generate sponsoring contract pdfs.
* @param runner The runner you want to generate the contracts for.
* @param locale The locale used for the contracts (default:en)
*/
public async generateSponsoringContract(runner: Runner, locale: string = "en"): Promise<any> {
i18next.changeLanguage(locale);
const template_source = fs.readFileSync(`${this.templateDir}/sponsoring_contract.html`, 'utf8');