mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-07 16:27:40 +00:00
chore: fix handlebars import
This commit is contained in:
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user