Merge branch 'develop'
All checks were successful
Spell Check / Spell Check with Typos (push) Successful in 5s

This commit is contained in:
Methapon2001 2025-05-13 10:06:51 +07:00
commit b276ccddd1

View file

@ -112,12 +112,12 @@ export class DocTemplateController extends Controller {
) {
const ret = await edmList(
"file",
templateGroup ? [templateGroup, ...DOCUMENT_PATH] : DOCUMENT_PATH,
templateGroup ? [...DOCUMENT_PATH, templateGroup] : DOCUMENT_PATH,
);
if (ret) return ret.map((v) => v.fileName);
}
return await listFile(
(templateGroup ? [templateGroup, ...DOCUMENT_PATH] : DOCUMENT_PATH).join("/") + "/",
(templateGroup ? [...DOCUMENT_PATH, templateGroup] : DOCUMENT_PATH).join("/") + "/",
);
}