배포용 수정

This commit is contained in:
dohyeons
2025-10-16 10:33:21 +09:00
parent 7e38f82d0c
commit 8f676c0a6d
9 changed files with 107 additions and 73 deletions

View File

@@ -54,17 +54,13 @@ class MailTemplateFileService {
}
/**
* 템플릿 디렉토리 생성 (없으면) - try-catch로 권한 에러 방지
* 템플릿 디렉토리 생성
*/
private async ensureDirectoryExists() {
try {
await fs.access(this.templatesDir);
} catch {
try {
await fs.mkdir(this.templatesDir, { recursive: true });
} catch (error) {
console.error("메일 템플릿 디렉토리 생성 실패:", error);
}
await fs.mkdir(this.templatesDir, { recursive: true, mode: 0o755 });
}
}