chore: fix handlebars import

This commit is contained in:
Meet
2024-10-05 01:18:13 +05:30
parent 20bcf8aab8
commit ced3ab97e8
@@ -1,4 +1,4 @@
import { compile } from "handlebars"; import handlebars from "handlebars";
import ldapjs from "ldapjs"; import ldapjs from "ldapjs";
import ldif from "ldif"; import ldif from "ldif";
import { customAlphabet } from "nanoid"; import { customAlphabet } from "nanoid";
@@ -40,7 +40,7 @@ const generateLDIF = ({
EncodedPassword: encodePassword(password) EncodedPassword: encodePassword(password)
}; };
const renderTemplate = compile(ldifTemplate); const renderTemplate = handlebars.compile(ldifTemplate);
const renderedLdif = renderTemplate(data); const renderedLdif = renderTemplate(data);
return renderedLdif; return renderedLdif;