diff --git a/src/controllers/00-doc-template-controller.ts b/src/controllers/00-doc-template-controller.ts index aa173e2..88b358f 100644 --- a/src/controllers/00-doc-template-controller.ts +++ b/src/controllers/00-doc-template-controller.ts @@ -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("/") + "/", ); }