chore: fix handlebars import

This commit is contained in:
Meet
2024-10-05 01:18:13 +05:30
parent 20bcf8aab8
commit ced3ab97e8

View File

@@ -1,4 +1,4 @@
import { compile } from "handlebars";
import handlebars from "handlebars";
import ldapjs from "ldapjs";
import ldif from "ldif";
import { customAlphabet } from "nanoid";
@@ -40,7 +40,7 @@ const generateLDIF = ({
EncodedPassword: encodePassword(password)
};
const renderTemplate = compile(ldifTemplate);
const renderTemplate = handlebars.compile(ldifTemplate);
const renderedLdif = renderTemplate(data);
return renderedLdif;